Last active
December 4, 2017 14:21
-
-
Save lemonlatte/38ecce780c90063f634bb6287e2ff179 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
for root, dirs, files in os.walk("/var/lib/assets"): | |
for f in files: | |
try: | |
print(f) | |
except: | |
os.rename(root + '/' + f, root + "/renamed-file") | |
print(root, files) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment