2020-07-29 18:58:56 +00:00
|
|
|
import os
|
|
|
|
import send2trash
|
|
|
|
|
|
|
|
from voussoirkit import pipeable
|
|
|
|
|
|
|
|
for line in pipeable.go():
|
|
|
|
if os.path.isfile(line):
|
2021-09-24 06:42:34 +00:00
|
|
|
pipeable.stdout(line)
|
2020-07-29 18:58:56 +00:00
|
|
|
send2trash.send2trash(line)
|
|
|
|
else:
|
2021-09-24 06:42:34 +00:00
|
|
|
pipeable.stderr('Not a file', line)
|