Skip to content

Instantly share code, notes, and snippets.

@snoopy6489
snoopy6489 / file_cleaner.py
Created July 11, 2018 18:32 — forked from GregHilston/file_cleaner.py
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:
@snoopy6489
snoopy6489 / file_cleaner.py
Created July 11, 2018 18:32 — forked from GregHilston/file_cleaner.py
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: