From 904781d5c645b014e37972c48894b411c42964c3 Mon Sep 17 00:00:00 2001 From: Samuel Maenle Date: Wed, 18 Aug 2021 23:28:00 +0200 Subject: [PATCH] enabled removing --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index cddd4e6..d0d5bb9 100644 --- a/main.py +++ b/main.py @@ -69,8 +69,8 @@ def process_file(child, daydates, monthdates, quarterdates, yeardates): print(f'{{"name": "{child.name}", "filedate": "{filedate}", "keep": "{keep}", "action": "none"}}') else: print(f'{{"name": "{child.name}", "filedate": "{filedate}", "keep": "{keep}" , "action": "to remove"}}') - #os.remove(child) - #print(f'{{"name": "{child.name}", "filedate": "{filedate}", "keep": "{keep}" , "action": "removed"}}') + os.remove(child) + print(f'{{"name": "{child.name}", "filedate": "{filedate}", "keep": "{keep}" , "action": "removed"}}') def test_for_keep(filedate, daydates, monthdates, quarterdates, yeardates):