Browse Source

Prevent callers from mutating folder lists

pull/725/head
space-nuko 1 year ago committed by comfyanonymous
parent
commit
d200fa1314
  1. 2
      folder_paths.py

2
folder_paths.py

@ -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):

Loading…
Cancel
Save