mirror of
https://github.com/rclone/rclone.git
synced 2025-01-13 20:38:12 +02:00
drive: fix using list recursive on shortcuts to directories
This commit is contained in:
parent
b91e01fd22
commit
8ddb3fbb2e
@ -1914,8 +1914,9 @@ func (f *Fs) resolveShortcut(item *drive.File) (newItem *drive.File, err error)
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.Wrap(err, "failed to resolve shortcut")
|
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.Name = item.Name
|
||||||
|
newItem.Parents = item.Parents
|
||||||
// the new ID is a composite ID
|
// the new ID is a composite ID
|
||||||
newItem.Id = joinID(newItem.Id, item.Id)
|
newItem.Id = joinID(newItem.Id, item.Id)
|
||||||
return newItem, nil
|
return newItem, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user