mkdirSync static method

void mkdirSync(
  1. String path, {
  2. bool showLog = true,
})

创建文件夹

Implementation

static void mkdirSync(
  String path, {
  bool showLog = true,
}) {
  if (showLog) {
    Logger.info('mkdir: ', path);
  }
  Directory(path).createSync(recursive: true);
}