Skip to content

Instantly share code, notes, and snippets.

@anshuraj
Last active May 1, 2018 06:17
Show Gist options
  • Save anshuraj/35377598390853c73dd34f0ee83d30b2 to your computer and use it in GitHub Desktop.
Save anshuraj/35377598390853c73dd34f0ee83d30b2 to your computer and use it in GitHub Desktop.
Script to rename uppercase first letter of all the files in a directory
import os
for filename in os.listdir("."):
os.rename(filename, filename[0].upper() + filename[1:])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment