Skip to content

Instantly share code, notes, and snippets.

@offlinemark
Created July 27, 2013 23:30
Show Gist options
  • Save offlinemark/6096710 to your computer and use it in GitHub Desktop.
Save offlinemark/6096710 to your computer and use it in GitHub Desktop.
Makes all directories in current directory lowercase.
import os, os.path
for thing in os.listdir('.'):
if thing[0] == '.':
continue
elif os.path.isdir(thing):
os.rename(thing, thing.lower())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment