checkDuplicateFilenames.py 288 B

1234567891011121314
  1. #!/usr/bin/env python3
  2. import os
  3. import sys
  4. files_set = set()
  5. for root, dir, files in os.walk("src/catch2"):
  6. for file in files:
  7. if file not in files_set:
  8. files_set.add(file)
  9. else:
  10. print("File %s is duplicate" % file)
  11. sys.exit(1)