2
在dart控制檯應用程序中,如何設置當前工作目錄?如何在Dart中設置當前工作目錄?
在dart控制檯應用程序中,如何設置當前工作目錄?如何在Dart中設置當前工作目錄?
import 'dart:io';
...
Directory.current = new Directory('your/path/here');
或只是
Directory.current = 'your/path/here';
又見https://api.dartlang.org/133671/dart-io/Directory/current.html