delete static method
- String relativePath
Delete a file or directory from the POD.
relativePath - Path relative to the app data directory.
Also deletes the associated ACL file if it exists.
Implementation
static Future<bool> delete(String relativePath) async {
final success = await PodFileSystem.deleteFile(relativePath);
if (success) {
// Remove from cache immediately.
removeFromCache(relativePath);
notifyChange(); // Notify listeners
// Also try to delete the ACL file (ignore errors)
try {
await PodFileSystem.deleteFile('$relativePath.acl');
debugPrint('PodDirectoryService: Deleted ACL file for: $relativePath');
} catch (_) {
// ACL file may not exist, ignore.
}
}
return success;
}