Skip to content

Commit e058408

Browse files
committed
fixed clean-up bug
1 parent 91948f0 commit e058408

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydra/utils/hash.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def clean_up(self):
147147
"""Cleans up old hash caches that haven't been accessed in the last 30 days"""
148148
now = datetime.now()
149149
for path in self.location.iterdir():
150-
if path.endswith(".lock"):
150+
if path.name.endswith(".lock"):
151151
continue
152152
days = (now - datetime.fromtimestamp(path.lstat().st_atime)).days
153153
if days > self.cleanup_period:

0 commit comments

Comments
 (0)