diff --git a/backend/onedrive/onedrive.go b/backend/onedrive/onedrive.go index 6545680c2..b53f94815 100644 --- a/backend/onedrive/onedrive.go +++ b/backend/onedrive/onedrive.go @@ -492,11 +492,11 @@ func NewFs(name, root string, m configmap.Mapper) (fs.Fs, error) { // Get rootID rootInfo, _, err := f.readMetaDataForPath("") - if err != nil || rootInfo.ID == "" { + if err != nil || rootInfo.GetID() == "" { return nil, errors.Wrap(err, "failed to get root") } - f.dirCache = dircache.New(root, rootInfo.ID, f) + f.dirCache = dircache.New(root, rootInfo.GetID(), f) // Find the current root err = f.dirCache.FindRoot(false)