cmd/recycle.py

12 lines
282 B
Python
Raw Normal View History

import os
2020-08-11 03:51:51 +00:00
import send2trash
from voussoirkit import pipeable
2020-08-11 03:51:51 +00:00
from voussoirkit import winglob
for pattern in pipeable.go(skip_blank=True):
for name in winglob.glob(pattern):
name = os.path.abspath(name)
pipeable.output(name)
send2trash.send2trash(name)