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
d200fa13
Commit
d200fa13
authored
May 31, 2023
by
space-nuko
Committed by
comfyanonymous
May 31, 2023
Browse files
Prevent callers from mutating folder lists
parent
b06c5259
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 @
d200fa13
...
@@ -181,7 +181,7 @@ def get_filename_list(folder_name):
...
@@ -181,7 +181,7 @@ def get_filename_list(folder_name):
out
=
get_filename_list_
(
folder_name
)
out
=
get_filename_list_
(
folder_name
)
global
filename_list_cache
global
filename_list_cache
filename_list_cache
[
folder_name
]
=
out
filename_list_cache
[
folder_name
]
=
out
return
out
[
0
]
return
list
(
out
[
0
]
)
def
get_save_image_path
(
filename_prefix
,
output_dir
,
image_width
=
0
,
image_height
=
0
):
def
get_save_image_path
(
filename_prefix
,
output_dir
,
image_width
=
0
,
image_height
=
0
):
def
map_filename
(
filename
):
def
map_filename
(
filename
):
...
...
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