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

drive: don't stop server side copy if couldn't read description

Nick Craig-Wood4fbb50422cee
diff --git a/backend/drive/drive.go b/backend/drive/drive.go
index f1d925d20..28354747a 100755
--- a/backend/drive/drive.go
+++ b/backend/drive/drive.go
@@ -2339,9 +2339,10 @@ func (f *Fs) Copy(ctx context.Context, src fs.Object, remote string) (fs.Object,
// preserve the description on copy for docs
info, err := f.getFile(actualID(srcObj.id), "description")
if err != nil {
- return nil, errors.Wrap(err, "failed to read description for Google Doc")
+ fs.Errorf(srcObj, "Failed to read description for Google Doc: %v", err)
+ } else {
+ createInfo.Description = info.Description
}
- createInfo.Description = info.Description
} else {
// don't overwrite the description on copy for files
// this should work for docs but it doesn't - it is probably a bug in Google Drive