geoadmin / tool-aws

A set of generic utility tools to manage some aws services
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

prefix bulk delete with exclude #13

Open ltclm opened 6 years ago

ltclm commented 6 years ago

do you think it is doable to have something like

s3rm --prefix /1.0.0/ch.swisstopo.swissimage/default/current/21781/15/ --exclude "*.jpeg"

In our ToD tiles bucket we can have multiple formats per prefix:

/1.0.0/ch.swisstopo.swissimage/default/current/21781/15/0/0.png
/1.0.0/ch.swisstopo.swissimage/default/current/21781/15/0/0.jpeg
loicgasser commented 6 years ago

doable, I'll spend some time next week improving capabilities of this lib, integrate the bbox stuff, do some refactoring and add this option.