createDir static method
同步创建文件
Implementation
static Directory? createDir(String path) {
if (ObjectUtils.isEmpty(path)) {
return null;
}
Directory dir = Directory(path);
if (!dir.existsSync()) {
dir.createSync(recursive: true);
}
return dir;
}