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

s3: report errors on bucket creation (mkdir) correctly

Nick Craig-Woode2bf91452a26
diff --git a/backend/s3/s3.go b/backend/s3/s3.go
index 40e5cb43d..9bd4dbcb7 100644
--- a/backend/s3/s3.go
+++ b/backend/s3/s3.go
@@ -1738,7 +1738,7 @@ func (f *Fs) makeBucket(ctx context.Context, bucket string) error {
err = nil
}
}
- return nil
+ return err
}, func() (bool, error) {
return f.bucketExists(ctx, bucket)
})