Ethan Dalool
4a9051e617
With pathclass.glob_many, we can clean up and feel more confident about many programs that use pipeable to take glob patterns. Added return 0 to all programs that didn't have it, so we have consistent and explicit command line return values. Other linting and whitespace.
11 lines
239 B
Python
11 lines
239 B
Python
import os
|
|
import send2trash
|
|
|
|
from voussoirkit import pipeable
|
|
|
|
for line in pipeable.go():
|
|
if os.path.isfile(line):
|
|
pipeable.stdout(line)
|
|
send2trash.send2trash(line)
|
|
else:
|
|
pipeable.stderr('Not a file', line)
|