好得很程序员自学网

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

创建一个链接

Use the Link create() method to create a symlink.

 import 'dart:io';

main() async {
  // Get the system temp directory.
  var temp = await Directory.systemTemp.createTemp('my_temp_dir');

  // Generate a couple of paths.
  var first = '${temp.path}${Platform.pathSeparator}first';
  var second = '${temp.path}${Platform.pathSeparator}second';

  // Create a symlink.
  Link symLink = await new Link(second).create(first);
  print(symLink);
} 

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

  阅读:57次

上一篇: 查询文件对象的类型

下一篇:操作符