mirror of
https://github.com/ArdeniusAI/ComfyUI-cpu
synced 2026-11-20 10:23:00 +03:00
Allow all extensions if extension list is empty
This commit is contained in:
1 parent
3fcab0c642
commit
8d04978298
1 file changed
+1
-1
+1
-1
@@ -146,7 +146,7 @@ def recursive_search(directory, excluded_dir_names=None):
|
||||
return result, dirs
|
||||
|
||||
def filter_files_extensions(files, extensions):
|
||||
return sorted(list(filter(lambda a: os.path.splitext(a)[-1].lower() in extensions, files)))
|
||||
return sorted(list(filter(lambda a: os.path.splitext(a)[-1].lower() in extensions or len(extensions) == 0, files)))
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user