ensureDeletedFiles method

Future<void> ensureDeletedFiles(
  1. List<String> deletedFiles
)

Implementation

Future<void> ensureDeletedFiles(List<String> deletedFiles) async {
  for (final path in deletedFiles) {
    final file = fs.file(path);
    final exists = file.existsSync();
    logger.detail('  - $file (exists: $exists)');

    if (!exists) continue;

    file.deleteSync();
  }
}