createDirectory static method

Future<void> createDirectory(
  1. String directoryPath
)

创建目录。

Implementation

static Future<void> createDirectory(String directoryPath) async {
  Directory directory = Directory(directoryPath);
  await directory.create(recursive: true);
}