mirror of
https://github.com/rclone/rclone.git
synced 2024-11-26 02:14:42 +01: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 {
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user