Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import fnmatch
- import os
- matches = []
- for root, dirnames, filenames in os.walk('.'):
- for filename in fnmatch.filter(filenames, '*.*'):
- matches.append(os.path.join(root, filename))
- for m in matches:
- try:
- os.rename(m, m.lower())
Advertisement
Add Comment
Please, Sign In to add comment