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.

Ignore folder path directories that don't exist.

comfyanonymous66e588d83727
diff --git a/folder_paths.py b/folder_paths.py
index 8cee6afde..a1bf1444d 100644
--- a/folder_paths.py
+++ b/folder_paths.py
@@ -173,8 +173,9 @@ def cached_filename_list_(folder_name):
folders = folder_names_and_paths[folder_name]
for x in folders[0]:
- if x not in out[1]:
- return None
+ if os.path.isdir(x):
+ if x not in out[1]:
+ return None
return out