mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-17 12:17:07 +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)
|
dirs[directory] = os.path.getmtime(directory)
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
logging.warning(f"Warning: Unable to access {directory}. Skipping this path.")
|
logging.warning(f"Warning: Unable to access {directory}. Skipping this path.")
|
||||||
|
return [], {}
|
||||||
|
|
||||||
logging.debug("recursive file list on directory {}".format(directory))
|
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:
|
while len(calls) > 0:
|
||||||
calls.pop().result()
|
calls.pop().result()
|
||||||
|
|
||||||
|
|
||||||
logging.debug("found {} files".format(len(result)))
|
logging.debug("found {} files".format(len(result)))
|
||||||
return result, dirs
|
return result, dirs
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user