From 80abdea13b890b51d36a9f2ea5f7c7f7f93708d8 Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Sun, 26 Jan 2025 14:10:40 +1100 Subject: [PATCH] Ensure cache is created before reorder of folder paths. --- folder_paths.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/folder_paths.py b/folder_paths.py index 616a0d6a5..693fa7beb 100644 --- a/folder_paths.py +++ b/folder_paths.py @@ -10,6 +10,7 @@ from collections.abc import Collection supported_pt_extensions: set[str] = {'.ckpt', '.pt', '.bin', '.pth', '.safetensors', '.pkl', '.sft'} folder_names_and_paths: dict[str, tuple[list[str], set[str]]] = {} +filename_list_cache: dict[str, tuple[list[str], dict[str, float], float]] = {} base_path = os.path.dirname(os.path.realpath(__file__)) models_dir = os.path.join(base_path, "models") @@ -44,8 +45,6 @@ temp_directory = os.path.join(base_path, "temp") input_directory = os.path.join(base_path, "input") user_directory = os.path.join(base_path, "user") -filename_list_cache: dict[str, tuple[list[str], dict[str, float], float]] = {} - class CacheHelper: """ Helper class for managing file list cache data.