cleanupBackups method

Future<void> cleanupBackups(
  1. List<String> paths
)

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');
    }
  }
}