From e223bd73cc9a75edb9589bf166b1e46a0ae40022 Mon Sep 17 00:00:00 2001 From: Matt Troutman Date: Mon, 16 Sep 2024 21:18:57 -0500 Subject: [PATCH] no message --- .fontfoldercleanup/cleanup.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.fontfoldercleanup/cleanup.py b/.fontfoldercleanup/cleanup.py index 306a60f..7ed94f6 100644 --- a/.fontfoldercleanup/cleanup.py +++ b/.fontfoldercleanup/cleanup.py @@ -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/') \ No newline at end of file + # 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/') \ No newline at end of file