fix: model preview path (#120)

This commit is contained in:
boeto
2025-02-04 20:27:00 +08:00
committed by GitHub
parent 92f2d5ab9e
commit f6368fe20b

View File

@@ -120,7 +120,7 @@ class ModelManager:
folders, extensions = folder_paths.folder_names_and_paths[folder]
def get_file_info(entry: os.DirEntry[str], base_path: str, path_index: int):
fullname = entry.path.replace(base_path, "")
fullname = utils.normalize_path(entry.path).replace(f"{base_path}/", "")
basename = os.path.splitext(fullname)[0]
extension = os.path.splitext(fullname)[1]