Add recycle_files.py like delete_files.py.

This commit is contained in:
voussoir 2020-07-29 11:58:56 -07:00
parent 22d680aaa1
commit 7052a8d41f

11
recycle_files.py Normal file
View file

@ -0,0 +1,11 @@
import os
import send2trash
from voussoirkit import pipeable
for line in pipeable.go():
if os.path.isfile(line):
print('Recycling', line)
send2trash.send2trash(line)
else:
print('Not a file', line)