cmd/recycle.py

10 lines
187 B
Python
Raw Normal View History

2020-08-11 03:51:51 +00:00
import send2trash
import sys
from voussoirkit import winglob
for pattern in sys.argv[1:]:
for file in winglob.glob(pattern):
print(file)
send2trash.send2trash(file)