From 3e00fa433216335a874bd408de421f9d65432daf Mon Sep 17 00:00:00 2001 From: Michael Poutre Date: Wed, 23 Aug 2023 16:50:41 -0700 Subject: [PATCH] feat: Exclude .git when retrieving filename lists In the future could support user provided excluded dirs via config file --- folder_paths.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folder_paths.py b/folder_paths.py index 16de1bb6..a1805285 100644 --- a/folder_paths.py +++ b/folder_paths.py @@ -166,7 +166,7 @@ def get_filename_list_(folder_name): folders = folder_names_and_paths[folder_name] output_folders = {} for x in folders[0]: - files, folders_all = recursive_search(x) + files, folders_all = recursive_search(x, excluded_dir_names=[".git"]) output_list.update(filter_files_extensions(files, folders[1])) output_folders = {**output_folders, **folders_all}