Add delete_files.py.
This commit is contained in:
parent
af6176286c
commit
c58b851427
1 changed files with 10 additions and 0 deletions
10
delete_files.py
Normal file
10
delete_files.py
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
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)
|
Loading…
Reference in a new issue