好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

创建一个目录

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);
} 

查看更多关于创建一个目录的详细内容...

  阅读:58次