From 49f973bc9304ed2e4eb019338324ef29c24feb86 Mon Sep 17 00:00:00 2001 From: "Alex \"mcmonkey\" Goodwin" Date: Thu, 19 Sep 2024 17:56:05 +0900 Subject: [PATCH] minor improvement --- folder_paths.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folder_paths.py b/folder_paths.py index af498b399..15960537f 100644 --- a/folder_paths.py +++ b/folder_paths.py @@ -224,6 +224,7 @@ def recursive_search(directory: str, excluded_dir_names: list[str] | None=None) dirs[directory] = os.path.getmtime(directory) except FileNotFoundError: logging.warning(f"Warning: Unable to access {directory}. Skipping this path.") + return [], {} logging.debug("recursive file list on directory {}".format(directory)) @@ -253,7 +254,6 @@ def recursive_search(directory: str, excluded_dir_names: list[str] | None=None) while len(calls) > 0: calls.pop().result() - logging.debug("found {} files".format(len(result))) return result, dirs