no message
This commit is contained in:
parent
8639d61c86
commit
e223bd73cc
1 changed files with 7 additions and 7 deletions
|
|
@ -63,7 +63,7 @@ def remove_empty_folders(path):
|
|||
for root, dirs, files in os.walk(path, topdown=False):
|
||||
for dir in dirs:
|
||||
dir_path = os.path.join(root, dir)
|
||||
if '.git' in dir_path.split(os.sep) or '.env' in dir_path.split(os.sep):
|
||||
if '.git' in dir_path.split(os.sep) or '.env' in dir_path.split(os.sep) or '.fontfoldercleanup' in dir_path.split(os.sep):
|
||||
continue
|
||||
if not os.listdir(dir_path):
|
||||
os.rmdir(dir_path)
|
||||
|
|
@ -209,9 +209,9 @@ if __name__ == '__main__':
|
|||
|
||||
remove_ds_store_files('/Users/fishy/custom_fonts/')
|
||||
remove_empty_folders('/Users/fishy/custom_fonts/')
|
||||
remove_bad_phrases('/Users/fishy/custom_fonts/')
|
||||
collect_orphaned_fonts('/Users/fishy/custom_fonts/')
|
||||
lowercase_all_the_folders('/Users/fishy/custom_fonts/')
|
||||
add_font_folders_to_each('/Users/fishy/custom_fonts/')
|
||||
remove_ds_store_files('/Users/fishy/custom_fonts/')
|
||||
remove_empty_folders('/Users/fishy/custom_fonts/')
|
||||
# remove_bad_phrases('/Users/fishy/custom_fonts/')
|
||||
# collect_orphaned_fonts('/Users/fishy/custom_fonts/')
|
||||
# lowercase_all_the_folders('/Users/fishy/custom_fonts/')
|
||||
# add_font_folders_to_each('/Users/fishy/custom_fonts/')
|
||||
# remove_ds_store_files('/Users/fishy/custom_fonts/')
|
||||
# remove_empty_folders('/Users/fishy/custom_fonts/')
|
||||
Loading…
Add table
Add a link
Reference in a new issue