Created
March 2, 2018 23:22
-
-
Save splinecraft/706a4c1c2c327f3a5508e8f895c8c4ed to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
filepath = r'E:/test_folder/' | |
os.chdir(filepath) | |
# make all filenames lowercase | |
for file in os.listdir(os.getcwd()): | |
name = file.lower() | |
os.rename(file, name) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment