[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [sbws/master] Python considers the extensions of "foo.bar.gz" to be ".gz"
commit a30be62758656ed2f0eedf25868d4a6a9032effb
Author: Matt Traudt <sirmatt@xxxxxxx>
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,
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits