Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

b2: don't include the bucket name in public link file prefixes

Jeffrey Tolar7511b6f4f136
diff --git a/backend/b2/b2.go b/backend/b2/b2.go
index eccb06441..5d5555602 100644
--- a/backend/b2/b2.go
+++ b/backend/b2/b2.go
@@ -1353,7 +1353,7 @@ func (f *Fs) getDownloadAuthorization(ctx context.Context, bucket, remote string
}
var request = api.GetDownloadAuthorizationRequest{
BucketID: bucketID,
- FileNamePrefix: f.opt.Enc.FromStandardPath(path.Join(f.root, remote)),
+ FileNamePrefix: f.opt.Enc.FromStandardPath(path.Join(f.rootDirectory, remote)),
ValidDurationInSeconds: validDurationInSeconds,
}
var response api.GetDownloadAuthorizationResponse