deleteFile method
Deletes the file at the specified path.
Implementation
@override
Future<void> deleteFile(String path) async {
if (_isDirectChildOfRoot(path)) {
throw FileSystemException(
"Cannot delete file directly in the virtual root", path);
}
final file =
await getFile(path); // getFile already resolves and handles root
if (await file.exists()) {
await file.delete();
} else {
throw FileSystemException(
"File not found for deletion: $path (resolved to ${file.path})");
}
}