diff --git a/pmtiles/bucket.go b/pmtiles/bucket.go index 100d00b..b9baa15 100644 --- a/pmtiles/bucket.go +++ b/pmtiles/bucket.go @@ -120,7 +120,7 @@ func OpenBucket(ctx context.Context, bucketURL string, bucketPrefix string) (Buc if err != nil { return nil, err } - if bucketPrefix != "/" && bucketPrefix != "." { + if bucketprefix != "" && bucketPrefix != "/" && bucketPrefix != "." { bucket = blob.PrefixedBucket(bucket, path.Clean(bucketPrefix)+string(os.PathSeparator)) } wrapped_bucket := BucketAdapter{bucket}