Last active
May 1, 2018 06:17
-
-
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
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 | |
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