1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 15:04:50 +08:00

Prevent callers from mutating folder lists

This commit is contained in:
space-nuko
2023-05-31 19:00:01 -05:00
committed by comfyanonymous
parent b06c5259db
commit d200fa1314

View File

@@ -181,7 +181,7 @@ def get_filename_list(folder_name):
out = get_filename_list_(folder_name)
global filename_list_cache
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 map_filename(filename):