cleanupBackups method
Implementation
Future<void> cleanupBackups(List<String> paths) async {
for (final path in paths) {
try {
final backupFile = File('$path.backup');
if (await backupFile.exists()) {
await backupFile.delete();
}
} catch (e) {
print('Warning: Failed to cleanup backup for $path: $e');
}
}
}