forked from TrueCloudLab/rclone
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
This commit is contained in:
parent
8d847a4e94
commit
4fbb50422c
1 changed files with 3 additions and 2 deletions
|
@ -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
|
// preserve the description on copy for docs
|
||||||
info, err := f.getFile(actualID(srcObj.id), "description")
|
info, err := f.getFile(actualID(srcObj.id), "description")
|
||||||
if err != nil {
|
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 {
|
} else {
|
||||||
// don't overwrite the description on copy for files
|
// 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
|
// this should work for docs but it doesn't - it is probably a bug in Google Drive
|
||||||
|
|
Loading…
Add table
Reference in a new issue