In a dart console application, how do I set the current working directory?
import 'dart:io';
...
Directory.current = new Directory('your/path/here');
or just
Directory.current = 'your/path/here';
See also https://api.dartlang.org/133671/dart-io/Directory/current.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With