lowercase file names
This commit is contained in:
parent
407407e23d
commit
5626a60c84
1 changed files with 2 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue