Last active
April 16, 2018 13:14
-
-
Save markpbaggett/2535d2da0aa18b19a9804eacceeb7676 to your computer and use it in GitHub Desktop.
Git mv all files to lowercase.
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 | |
from subprocess import call | |
path = "XSLT" | |
for x in os.listdir(path): | |
if x != x.lower(): | |
file = x.lower() | |
call(f"git mv {path}/{x} {path}/{file}", shell=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment