Add recycle.py.
This commit is contained in:
parent
b7fffcc0c8
commit
09a03fd4b0
1 changed files with 9 additions and 0 deletions
9
recycle.py
Normal file
9
recycle.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
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)
|
Loading…
Reference in a new issue