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
2231edec
Commit
2231edec
authored
Oct 14, 2023
by
comfyanonymous
Browse files
Merge branch 'filter-files-extensions' of
https://github.com/jn-jairo/ComfyUI
parents
1b782f24
8d049782
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 @
2231edec
...
@@ -146,7 +146,7 @@ def recursive_search(directory, excluded_dir_names=None):
...
@@ -146,7 +146,7 @@ def recursive_search(directory, excluded_dir_names=None):
return
result
,
dirs
return
result
,
dirs
def
filter_files_extensions
(
files
,
extensions
):
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