Gzip loop-claude's archive and the review folders 30 days after each file last changed, and read gzipped files by their plain name #572

Merged
lilleman merged 12 commits from item-306 into main 2026-11-17 02:58:40 +01:00
Showing only changes of commit 192b9feda2 - Show all commits
@@ -75,7 +75,9 @@ class Main(unittest.TestCase):
self.assertTrue((self.archive / "b.jsonl").is_file())
def test_keeps_a_file_copied_today_with_its_old_times_plain(self):
self.assertEqual(self.run_main(now=time.time()), (0, "Compressed 0 files.\n", ""))
now = time.time()
os.utime(self.archive / "a.jsonl", (now - 31 * DAY, now - 31 * DAY))
self.assertEqual(self.run_main(now=now), (0, "Compressed 0 files.\n", ""))
self.assertTrue((self.archive / "a.jsonl").is_file())
def test_measures_the_30_days_from_the_clock_by_default(self):