I noticed while I was exporting tilesets to S3 that when I passed in a URI such as:
s3://geotrellis-test/foo/tiles-v01
that the tiles were saving to:
s3://geotrellis-test/foo/tiles-v0
As far as I can tell, it looks like the original intent of this code is to strip both leading and trailing slashes...or at least that's what works consistently when I pass URIs to saveToS3. So I modified the code to always remove leading + trailing slashes and to not accidentally remove other stuff.
I noticed while I was exporting tilesets to S3 that when I passed in a URI such as:
that the tiles were saving to:
As far as I can tell, it looks like the original intent of this code is to strip both leading and trailing slashes...or at least that's what works consistently when I pass URIs to
saveToS3
. So I modified the code to always remove leading + trailing slashes and to not accidentally remove other stuff.