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

@@ -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}/", "")