no message
This commit is contained in:
parent
5bebd760a9
commit
747b93412d
1 changed files with 3 additions and 3 deletions
|
|
@ -266,8 +266,8 @@ def dont_use_dots_for_font_files(root_path=font_location):
|
|||
if file_path.endswith('.otf') or file_path.endswith('.ttf') or file_path.endswith('.ttc') or file_path.endswith('.pdf'):
|
||||
new_file_path = None
|
||||
for x in ['.', ' ', '-', '.-','--']:
|
||||
if file_path.startswith(x):
|
||||
new_file_path = file_path.lstrip(x)
|
||||
if file.startswith(x):
|
||||
new_file_path = os.path.join(root, file.lstrip(x))
|
||||
os.rename(file_path, new_file_path)
|
||||
print(f"Renamed file: {file_path} -> {new_file_path}")
|
||||
new_file_path = None
|
||||
|
|
@ -280,7 +280,7 @@ if __name__ == '__main__':
|
|||
lowercase_all_the_folders()
|
||||
remove_spaces_in_dir_names()
|
||||
lowercase_and_dash_file_names()
|
||||
dont_use_dots_for_font_files()
|
||||
prepend_folder_name_to_font_dash()
|
||||
dont_use_dots_for_font_files()
|
||||
remove_ds_store_files()
|
||||
remove_empty_folders()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue