cmd/recycle_files.py
Ethan Dalool 4a9051e617
Big migrations and linting.
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.
2021-09-23 23:42:45 -07:00

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)