deleteDirectory method
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");
}
}