Poodletooth-iLand/resources/removesuffix.py
2015-11-14 15:53:16 -05:00

10 lines
No EOL
266 B
Python

import os
suffix = "_french"
for folder in os.walk("."):
for filename in folder[2]:
if suffix in filename:
filename = os.path.join(folder[0], filename)
print filename
os.rename(filename, filename.replace(suffix, ""))