diff --git a/lib/spack/llnl/util/filesystem.py b/lib/spack/llnl/util/filesystem.py index 35c85ba3ae9..b799685cdbf 100644 --- a/lib/spack/llnl/util/filesystem.py +++ b/lib/spack/llnl/util/filesystem.py @@ -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