mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-13 23:17:14 +08:00
minor improvement
This commit is contained in:
parent
d659be7ef0
commit
49f973bc93
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user