fix: unpack folder_names_and_paths error (#128)

This commit is contained in:
Hayden
2025-02-10 10:59:36 +08:00
committed by GitHub
parent 17ab373b9c
commit c7898c47f1
2 changed files with 2 additions and 2 deletions

View File

@@ -386,7 +386,7 @@ class Information:
model_base_paths = utils.resolve_model_base_paths()
for model_type in model_base_paths:
folders, extensions = folder_paths.folder_names_and_paths[model_type]
folders, *others = folder_paths.folder_names_and_paths[model_type]
for path_index, base_path in enumerate(folders):
files = utils.recursive_search_files(base_path, request)

View File

@@ -117,7 +117,7 @@ class ModelManager:
result = []
include_hidden_files = utils.get_setting_value(request, "scan.include_hidden_files", False)
folders, extensions = folder_paths.folder_names_and_paths[folder]
folders, *others = folder_paths.folder_names_and_paths[folder]
def get_file_info(entry: os.DirEntry[str], base_path: str, path_index: int):
fullname = utils.normalize_path(entry.path).replace(f"{base_path}/", "")