mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-03-12 22:02:14 +00:00
Switch to sorted set for path.
This commit is contained in:
parent
2e73367f45
commit
80af43dba6
@ -56,10 +56,10 @@ def get_full_path(folder_name, filename):
|
|||||||
|
|
||||||
def get_filename_list(folder_name):
|
def get_filename_list(folder_name):
|
||||||
global folder_names_and_paths
|
global folder_names_and_paths
|
||||||
output_list = []
|
output_list = set()
|
||||||
folders = folder_names_and_paths[folder_name]
|
folders = folder_names_and_paths[folder_name]
|
||||||
for x in folders[0]:
|
for x in folders[0]:
|
||||||
output_list += filter_files_extensions(recursive_search(x), folders[1])
|
output_list.update(filter_files_extensions(recursive_search(x), folders[1]))
|
||||||
return output_list
|
return sorted(list(output_list))
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user