Browse Source

Ignore folder path directories that don't exist.

pull/732/head
comfyanonymous 1 year ago
parent
commit
66e588d837
  1. 5
      folder_paths.py

5
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

Loading…
Cancel
Save