no message

This commit is contained in:
Matt Troutman 2024-09-16 21:18:57 -05:00
parent 8639d61c86
commit e223bd73cc
No known key found for this signature in database

View file

@ -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/')