2020-12-06 23:02:56 +00:00
|
|
|
import os
|
|
|
|
import shutil
|
|
|
|
|
|
|
|
from voussoirkit import pipeable
|
|
|
|
from voussoirkit import winglob
|
|
|
|
|
|
|
|
for pattern in pipeable.go(skip_blank=True):
|
|
|
|
for name in winglob.glob(pattern):
|
|
|
|
if os.path.isfile(name):
|
2021-05-25 08:35:46 +00:00
|
|
|
pipeable.stdout(name)
|
2020-12-06 23:02:56 +00:00
|
|
|
os.remove(name)
|
|
|
|
elif os.path.isdir(name):
|
2021-05-25 08:35:46 +00:00
|
|
|
pipeable.stdout(name)
|
2020-12-06 23:02:56 +00:00
|
|
|
shutil.rmtree(name)
|