Add debugging statements to file search (#39121)

Co-authored-by: Scheibel <scheibel1@ml-9983616.the-lab.llnl.gov>
This commit is contained in:
Peter Scheibel 2023-08-16 23:31:06 -07:00 committed by GitHub
parent c6e26251a1
commit a89f1b1bf4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1754,9 +1754,14 @@ def find(root, files, recursive=True):
files = [files]
if recursive:
return _find_recursive(root, files)
tty.debug(f"Find (recursive): {root} {str(files)}")
result = _find_recursive(root, files)
else:
return _find_non_recursive(root, files)
tty.debug(f"Find (not recursive): {root} {str(files)}")
result = _find_non_recursive(root, files)
tty.debug(f"Find complete: {root} {str(files)}")
return result
@system_path_filter