"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
onedrive: fix server-side copy completely disabled on OneDrive for Business
Cnly00bf40a8ef4e
diff --git a/backend/onedrive/onedrive.go b/backend/onedrive/onedrive.goindex 10a06dfd6..6a8c2e78e 100755--- a/backend/onedrive/onedrive.go+++ b/backend/onedrive/onedrive.go@@ -1032,7 +1032,13 @@ func (f *Fs) Copy(ctx context.Context, src fs.Object, remote string) (fs.Object,return nil, fs.ErrorCantCopy}if f.driveType != srcObj.fs.driveType {- fs.Debugf(src, "Can't server-side copy - not both drives are OneDrive Personal")+ fs.Debugf(src, "Can't server-side copy - drive types differ")+ return nil, fs.ErrorCantCopy+ }++ // For OneDrive Business, this is only supported within the same drive+ if f.driveType != driveTypePersonal && srcObj.fs.driveID != f.driveID {+ fs.Debugf(src, "Can't server-side copy - cross-drive but not OneDrive Personal")return nil, fs.ErrorCantCopy}