mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-14 19:17:32 +08:00
Revert
This commit is contained in:
parent
6ff500cac8
commit
ba6d6de2ae
@ -139,21 +139,12 @@ def get_full_path(folder_name, filename):
|
||||
return full_path
|
||||
|
||||
|
||||
path_cache_dict = {}
|
||||
|
||||
def clear_cache():
|
||||
global path_cache_dict
|
||||
path_cache_dict = {}
|
||||
|
||||
|
||||
def get_filename_list(folder_name):
|
||||
global folder_names_and_paths, path_cache_dict
|
||||
print("RecursiveWalk! " + folder_name)
|
||||
if folder_name not in path_cache_dict:
|
||||
output_list = set()
|
||||
folders = folder_names_and_paths[folder_name]
|
||||
for x in folders[0]:
|
||||
output_list.update(filter_files_extensions(recursive_search(x), folders[1]))
|
||||
path_cache_dict[folder_name] = sorted(list(output_list))
|
||||
global folder_names_and_paths
|
||||
output_list = set()
|
||||
folders = folder_names_and_paths[folder_name]
|
||||
for x in folders[0]:
|
||||
output_list.update(filter_files_extensions(recursive_search(x), folders[1]))
|
||||
return sorted(list(output_list))
|
||||
|
||||
|
||||
return path_cache_dict[folder_name]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user