"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: make sure we create root for server side copy
Nick Craig-Wood986a2851bf31
diff --git a/onedrive/onedrive.go b/onedrive/onedrive.goindex c82bcc3f0..1d91adf33 100644--- a/onedrive/onedrive.go+++ b/onedrive/onedrive.go@@ -615,6 +615,12 @@ func (f *Fs) Copy(src fs.Object, remote string) (fs.Object, error) {return nil, errors.Errorf("can't copy %q -> %q as are same name when lowercase", srcPath, dstPath)}+ // create the destination directory if necessary+ err = f.dirCache.FindRoot(true)+ if err != nil {+ return nil, err+ }+// Create temporary objectdstObj, leaf, directoryID, err := f.createObject(remote, srcObj.modTime, srcObj.size)if err != nil {