Skip to content

Instantly share code, notes, and snippets.

@GregHilston
GregHilston / file_cleaner.py
Last active March 3, 2024 10:10
Deletes all files that are missing a given string in their name
# Hey everyone, I was having a tough time cleaning up my ROMs, as there would be multiple versions of the same game, like:
# Super-Smash(Japan).rom
# Super-Smash(Europe).rom
# Super-Smash(USA).rom
# I ended up writing this small Python (3.6) script that you can use to cleanup duplicate files.
# Execution looks like this, if you want to keep only USA files: