lowercase file names

This commit is contained in:
Matt Troutman 2024-10-02 14:17:56 -05:00
parent 407407e23d
commit 5626a60c84
No known key found for this signature in database

View file

@ -243,7 +243,7 @@ def prepend_folder_name_to_font_dash(root_path=font_location):
os.rename(dir_path, new_dir_path)
print(f"Renamed directory: {dir_path} -> {new_dir_path}")
def lowercase_file_names(root_path=font_location):
def lowercase_and_dash_file_names(root_path=font_location):
for root, dirs, files in os.walk(root_path):
for file in files:
file_path = os.path.join(root, file)
@ -261,6 +261,7 @@ if __name__ == '__main__':
lowercase_all_the_folders()
# add_font_folders_to_each()
remove_spaces_in_dir_names()
lowercase_and_dash_file_names()
prepend_folder_name_to_font_dash()
remove_ds_store_files()
remove_empty_folders()