"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
Drive: disable copy and move for google docs - fixes #332
Nick Craig-Woodb279df2e6793
diff --git a/drive/drive.go b/drive/drive.goindex 034edd9de..eb65d24a4 100644--- a/drive/drive.go+++ b/drive/drive.go@@ -695,6 +695,9 @@ func (f *Fs) Copy(src fs.Object, remote string) (fs.Object, error) {fs.Debug(src, "Can't copy - not same remote type")return nil, fs.ErrorCantCopy}+ if srcObj.isDocument {+ return nil, fmt.Errorf("Can't copy a Google document")+ }o, createInfo, err := f.createFileInfo(remote, srcObj.ModTime(), srcObj.bytes)if err != nil {@@ -757,6 +760,9 @@ func (f *Fs) Move(src fs.Object, remote string) (fs.Object, error) {fs.Debug(src, "Can't move - not same remote type")return nil, fs.ErrorCantMove}+ if srcObj.isDocument {+ return nil, fmt.Errorf("Can't move a Google document")+ }// Temporary FsObject under constructiondstObj, dstInfo, err := f.createFileInfo(remote, srcObj.ModTime(), srcObj.bytes)