"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
s3: fix detection of BucketAlreadyOwnedByYou and BucketAlreadyExists error
Nick Craig-Woodf8039deb7c9f
diff --git a/backend/s3/s3.go b/backend/s3/s3.goindex 9bd4dbcb7..1353fd666 100644--- a/backend/s3/s3.go+++ b/backend/s3/s3.go@@ -1733,8 +1733,8 @@ func (f *Fs) makeBucket(ctx context.Context, bucket string) error {if err == nil {fs.Infof(f, "Bucket %q created with ACL %q", bucket, f.opt.BucketACL)}- if err, ok := err.(awserr.Error); ok {- if err.Code() == "BucketAlreadyOwnedByYou" {+ if awsErr, ok := err.(awserr.Error); ok {+ if code := awsErr.Code(); code == "BucketAlreadyOwnedByYou" || code == "BucketAlreadyExists" {err = nil}}