minor improvement

This commit is contained in:
Alex "mcmonkey" Goodwin 2024-09-19 17:56:05 +09:00
parent d659be7ef0
commit 49f973bc93

View File

@ -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