Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
8d049782
"git@developer.sourcefind.cn:modelzoo/resnet50_tensorflow.git" did not exist on "067817b9c2bd0c565066c624962b93fd33aee93d"
Commit
8d049782
authored
Oct 14, 2023
by
Jairo Correa
Browse files
Allow all extensions if extension list is empty
parent
3fcab0c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
folder_paths.py
folder_paths.py
+1
-1
No files found.
folder_paths.py
View file @
8d049782
...
...
@@ -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
)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment