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