From 4fbb50422ceec22eb1575d9544f0603de4bc635f Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Thu, 10 Sep 2020 20:41:26 +0100 Subject: [PATCH] drive: don't stop server side copy if couldn't read description Before this change we would error out of a server side copy if we couldn't read the description for a google doc. This patch just logs an ERROR message and carries on. See: https://forum.rclone.org/t/rclone-google-drive-to-google-drive-migration-for-multiple-users/19024/3 --- backend/drive/drive.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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