好得很程序员自学网

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

创建一个临时文件夹

Use the Directory createTemp() method to create a temporary directory. This method appends random characters to the name of the directory to produce a unique directory name.

 import 'dart:io';

main() async {
  var directory = await Directory.systemTemp.createTemp('my_temp_dir');
  print(directory.path);
} 

查看更多关于创建一个临时文件夹的详细内容...

  阅读:71次