deleteDirectory static method

Future<void> deleteDirectory(
  1. String directoryPath
)

删除目录。

Implementation

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