enabled removing

This commit is contained in:
Samuel Maenle 2021-08-18 23:28:00 +02:00
parent 3c362ec849
commit 904781d5c6

View File

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