Skip to content

Instantly share code, notes, and snippets.

@splinecraft
Created March 2, 2018 23:22
Show Gist options
  • Save splinecraft/706a4c1c2c327f3a5508e8f895c8c4ed to your computer and use it in GitHub Desktop.
Save splinecraft/706a4c1c2c327f3a5508e8f895c8c4ed to your computer and use it in GitHub Desktop.
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