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):