summaryrefslogtreecommitdiff
path: root/ybd/cache.py
diff options
context:
space:
mode:
Diffstat (limited to 'ybd/cache.py')
-rw-r--r--ybd/cache.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ybd/cache.py b/ybd/cache.py
index f3b312d..b12d0f3 100644
--- a/ybd/cache.py
+++ b/ybd/cache.py
@@ -324,6 +324,7 @@ def cull(artifact_dir):
def clear(deleted, artifact_dir):
artifacts = utils.sorted_ls(artifact_dir)
+ artifacts[:] = [a for a in artifacts if a != '.trees']
for artifact in artifacts:
stat = os.statvfs(artifact_dir)
free = stat.f_frsize * stat.f_bavail / 1000000000