filesystem.py: fix recursive_mtime_greater_than (#48718)

This commit is contained in:
psakievich 2025-01-26 00:29:29 -07:00 committed by GitHub
parent a0d0e6321f
commit 5e3020ad02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1472,7 +1472,7 @@ def set_executable(path):
def recursive_mtime_greater_than(path: str, time: float) -> bool:
"""Returns true if any file or dir recursively under `path` has mtime greater than `time`."""
# use bfs order to increase likelihood of early return
queue: Deque[str] = collections.deque()
queue: Deque[str] = collections.deque(path)
if os.stat(path).st_mtime > time:
return True