cmd/recycle.py

11 lines
282 B
Python

import os
import send2trash
from voussoirkit import pipeable
from voussoirkit import winglob
for pattern in pipeable.go(skip_blank=True):
for name in winglob.glob(pattern):
name = os.path.abspath(name)
pipeable.stdout(name)
send2trash.send2trash(name)