Created
July 27, 2013 23:30
-
-
Save offlinemark/6096710 to your computer and use it in GitHub Desktop.
Makes all directories in current directory lowercase.
This file contains 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, 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