Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

feat: Exclude .git when retrieving filename lists

Michael Poutre3e00fa433216
diff --git a/folder_paths.py b/folder_paths.py
index 16de1bb66..a18052856 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}