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: fix using list recursive on shortcuts to directories

Nick Craig-Wood8ddb3fbb2ef2
diff --git a/backend/drive/drive.go b/backend/drive/drive.go
index 5a261dcb4..fdad87af0 100755
--- a/backend/drive/drive.go
+++ b/backend/drive/drive.go
@@ -1914,8 +1914,9 @@ func (f *Fs) resolveShortcut(item *drive.File) (newItem *drive.File, err error)
if err != nil {
return nil, errors.Wrap(err, "failed to resolve shortcut")
}
- // make sure we use the Name from the original item
+ // make sure we use the Name and Parents from the original item
newItem.Name = item.Name
+ newItem.Parents = item.Parents
// the new ID is a composite ID
newItem.Id = joinID(newItem.Id, item.Id)
return newItem, nil