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

Revert "drive: server side copy docs use default description if empty"

Nick Craig-Woodcf5d0f5c1fde
diff --git a/backend/drive/drive.go b/backend/drive/drive.go
index 90a3fa89a..fdad87af0 100755
--- a/backend/drive/drive.go
+++ b/backend/drive/drive.go
@@ -2244,10 +2244,7 @@ func (f *Fs) Copy(ctx context.Context, src fs.Object, remote string) (fs.Object,
if err != nil {
return nil, errors.Wrap(err, "failed to read description for Google Doc")
}
- // set the description if there is one, or use the default if not
- if info.Description != "" {
- 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