onedrive: fix broken support for "shared with me" folders - fixes #2536, #2778 (#2876)

This commit is contained in:
Alex Chen
2019-01-09 13:11:00 +08:00
committed by GitHub
parent 554ee0d963
commit 49da220b65
2 changed files with 132 additions and 48 deletions

View File

@@ -285,6 +285,7 @@ type AsyncOperationStatus struct {
// GetID returns a normalized ID of the item
// If DriveID is known it will be prefixed to the ID with # seperator
// Can be parsed using onedrive.parseNormalizedID(normalizedID)
func (i *Item) GetID() string {
if i.IsRemote() && i.RemoteItem.ID != "" {
return i.RemoteItem.ParentReference.DriveID + "#" + i.RemoteItem.ID