Skip to content

Instantly share code, notes, and snippets.

@markpbaggett
Last active April 16, 2018 13:14
Show Gist options
  • Save markpbaggett/2535d2da0aa18b19a9804eacceeb7676 to your computer and use it in GitHub Desktop.
Save markpbaggett/2535d2da0aa18b19a9804eacceeb7676 to your computer and use it in GitHub Desktop.
Git mv all files to lowercase.
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