Add recycle_files.py like delete_files.py.
This commit is contained in:
parent
22d680aaa1
commit
7052a8d41f
1 changed files with 11 additions and 0 deletions
11
recycle_files.py
Normal file
11
recycle_files.py
Normal 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)
|
Loading…
Reference in a new issue