From 739a931ba16669bccabc04207eccca7cc47a0d1f Mon Sep 17 00:00:00 2001 From: Dan Date: Fri, 30 Aug 2024 23:08:52 -0400 Subject: [PATCH] delete remote files after 7 days --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 04ed074..ee17307 100644 --- a/main.py +++ b/main.py @@ -37,7 +37,7 @@ if remoteOn is True: for file in os.listdir(remote_path): t = os.path.getmtime(remote_path + file) age = (time.time() -t) / 86400 - if age >= 30 and file != 'Clipboard': + if age >= 7 and file != 'Clipboard': os.remove(remote_path + file) logging.info('-- Deleted %s', file) else: