Created
August 7, 2017 08:57
-
-
Save alirezas/b63cd56c3460d2b530004b49f59b4ce2 to your computer and use it in GitHub Desktop.
Rename filenames in a directory to lowercase in python.
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 | |
path = os.chdir('DIRECTORY_PATH') | |
files = os.listdir(path) | |
for file in files: | |
os.rename(file, file.lower()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment