mkdirAsync static method

Future<Directory> mkdirAsync(
  1. String path, {
  2. bool showLog = true,
})

创建文件夹

Implementation

static Future<Directory> mkdirAsync(
  String path, {
  bool showLog = true,
}) async {
  if (showLog) {
    Logger.info('mkdir: ', path);
  }
  return Directory(path).create(recursive: true);
}