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
2260802d
Commit
2260802d
authored
May 30, 2023
by
comfyanonymous
Browse files
Check if folder_name is valid instead of just throwing exception.
parent
9af7033c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
folder_paths.py
folder_paths.py
+2
-0
No files found.
folder_paths.py
View file @
2260802d
...
...
@@ -125,6 +125,8 @@ def filter_files_extensions(files, extensions):
def
get_full_path
(
folder_name
,
filename
):
global
folder_names_and_paths
if
folder_name
not
in
folder_names_and_paths
:
return
None
folders
=
folder_names_and_paths
[
folder_name
]
filename
=
os
.
path
.
relpath
(
os
.
path
.
join
(
"/"
,
filename
),
"/"
)
for
x
in
folders
[
0
]:
...
...
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