"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
azureblob: fix permission error on SAS URL limited to container
Nick Craig-Woodd342f9f942ce
diff --git a/backend/azureblob/azureblob.go b/backend/azureblob/azureblob.goindex ec18ede00..435c4659c 100644--- a/backend/azureblob/azureblob.go+++ b/backend/azureblob/azureblob.go@@ -866,6 +866,10 @@ func (f *Fs) Mkdir(ctx context.Context, dir string) error {// makeContainer creates the container if it doesn't existfunc (f *Fs) makeContainer(ctx context.Context, container string) error {return f.cache.Create(container, func() error {+ // If this is a SAS URL limited to a container then assume it is already created+ if f.isLimited {+ return nil+ }// now try to create the containerreturn f.pacer.Call(func() (bool, error) {_, err := f.cntURL(container).Create(ctx, azblob.Metadata{}, azblob.PublicAccessNone)