deleteDirectory method

  1. @override
Future<void> deleteDirectory(
  1. String path
)
override

Deletes the directory at the specified path.

Implementation

@override
Future<void> deleteDirectory(String path) async {
  final dir = Directory(resolvePath(path));
  if (await dir.exists()) {
    await dir.delete(recursive: true);
  } else {
    throw FileSystemException("Directory not found: $path");
  }
}