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

onedrive: disable server side copy as it seems to be broken

Nick Craig-Wood29ecc2d8bbb3
diff --git a/onedrive/onedrive.go b/onedrive/onedrive.go
index 5c1e9f269..2fc2bc873 100644
--- a/onedrive/onedrive.go
+++ b/onedrive/onedrive.go
@@ -590,7 +590,7 @@ func (f *Fs) waitForJob(location string, o *Object) error {
// Will only be called if src.Fs().Name() == f.Name()
//
// If it isn't possible then return fs.ErrorCantCopy
-func (f *Fs) Copy(src fs.Object, remote string) (fs.Object, error) {
+func (f *Fs) FIXMEDisabledCopy(src fs.Object, remote string) (fs.Object, error) {
srcObj, ok := src.(*Object)
if !ok {
fs.Debug(src, "Can't copy - not same remote type")
@@ -940,7 +940,7 @@ func (o *Object) Remove() error {
var (
_ fs.Fs = (*Fs)(nil)
_ fs.Purger = (*Fs)(nil)
- // _ fs.Copier = (*Fs)(nil)
+ // FIXME _ fs.Copier = (*Fs)(nil)
// _ fs.Mover = (*Fs)(nil)
// _ fs.DirMover = (*Fs)(nil)
_ fs.Object = (*Object)(nil)