cmd/delete_files.py

11 lines
201 B
Python
Raw Normal View History

2020-02-10 07:33:24 +00:00
import os
from voussoirkit import pipeable
for line in pipeable.go():
if os.path.isfile(line):
print('Deleting', line)
os.remove(line)
else:
print('Not a file', line)