Guest User

Untitled

a guest
May 13th, 2012
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. import fnmatch
  2. import os
  3. matches = []
  4. for root, dirnames, filenames in os.walk('.'):
  5. for filename in fnmatch.filter(filenames, '*.*'):
  6. matches.append(os.path.join(root, filename))
  7. for m in matches:
  8. try:
  9. os.rename(m, m.lower())
Advertisement
Add Comment
Please, Sign In to add comment