Use the Directory create() method to create a directory. To create intermediate directories, set the recursive argument to true (default is false).
import 'dart:io';
main() async {
// Creates dir/ and dir/subdir/.
var directory = await new Directory('dir/subdir').create(recursive: true);
print(directory.path);
}
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did129448