"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: URL escape CopySource
Nick Craig-Woodcae19df05882
diff --git a/s3/s3.go b/s3/s3.goindex 48c37d8a6..7134f4027 100644--- a/s3/s3.go+++ b/s3/s3.go@@ -17,6 +17,7 @@ import ("errors""fmt""io"+ "net/url""path""regexp""strings"@@ -523,7 +524,7 @@ func (f *Fs) Copy(src fs.Object, remote string) (fs.Object, error) {}srcFs := srcObj.fskey := f.root + remote- source := srcFs.bucket + "/" + srcFs.root + srcObj.remote+ source := url.QueryEscape(srcFs.bucket + "/" + srcFs.root + srcObj.remote)req := s3.CopyObjectInput{Bucket: &f.bucket,Key: &key,@@ -664,7 +665,7 @@ func (o *Object) SetModTime(modTime time.Time) {ACL: &o.fs.perm,Key: &key,ContentType: &contentType,- CopySource: &sourceKey,+ CopySource: aws.String(url.QueryEscape(sourceKey)),Metadata: o.meta,MetadataDirective: &directive,}