From 5626a60c8409dd0374a62bb08e2d10d4125e6fdb Mon Sep 17 00:00:00 2001 From: Matt Troutman Date: Wed, 2 Oct 2024 14:17:56 -0500 Subject: [PATCH] lowercase file names --- .fontfoldercleanup/cleanup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.fontfoldercleanup/cleanup.py b/.fontfoldercleanup/cleanup.py index 2bc5ee4..1dc34b5 100644 --- a/.fontfoldercleanup/cleanup.py +++ b/.fontfoldercleanup/cleanup.py @@ -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()