Create a tester executable
This commit is contained in:
parent
f5acee7b56
commit
baf8904408
3 changed files with 22 additions and 1 deletions
19
bin/testAbsolutePath.dart
Normal file
19
bin/testAbsolutePath.dart
Normal file
|
@ -0,0 +1,19 @@
|
|||
import 'dart:io';
|
||||
|
||||
import 'package:servermanager/structs/settings.dart';
|
||||
|
||||
Future<int> main(String[] args) async {
|
||||
|
||||
Settings.makeAbsoluteSettingsPath();
|
||||
print("Server data absolute path: ${Settings.ABSOLUTE_PATH}");
|
||||
|
||||
Directory data = Directory("data");
|
||||
if(!data.existsSync()) data..createSync();
|
||||
|
||||
Directory.current = data;
|
||||
|
||||
Settings.makeAbsoluteSettingsPath();
|
||||
print("New absolute path: ${Settings.ABSOLUTE_PATH}");
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue