enabled removing
This commit is contained in:
parent
3c362ec849
commit
904781d5c6
4
main.py
4
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):
|
||||
|
Loading…
Reference in New Issue
Block a user