[tor-commits] [sbws/master] Python considers the extensions of "foo.bar.gz" to be ".gz"
pastly at torproject.org
pastly at torproject.org
Thu Aug 9 14:21:19 UTC 2018
commit a30be62758656ed2f0eedf25868d4a6a9032effb
Author: Matt Traudt <sirmatt at ksu.edu>
Date: Wed Aug 1 19:21:23 2018 -0400
Python considers the extensions of "foo.bar.gz" to be ".gz"
Also this was missing the leading "."
---
sbws/core/cleanup.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sbws/core/cleanup.py b/sbws/core/cleanup.py
index 3f677a0..fe529a7 100644
--- a/sbws/core/cleanup.py
+++ b/sbws/core/cleanup.py
@@ -174,7 +174,7 @@ def _clean_v3bw_files(args, conf):
# first delete so that the files to be deleted are not compressed first
files_to_delete = _get_files_mtime_older_than(v3bw_dname,
delete_after_days,
- ['.v3bw', 'v3bw.gz'])
+ ['.v3bw', '.gz'])
_delete_files(v3bw_dname, files_to_delete, dry_run=args.dry_run)
files_to_compress = _get_files_mtime_older_than(v3bw_dname,
compress_after_days,
More information about the tor-commits
mailing list