1
mirror of https://github.com/rclone/rclone synced 2024-11-18 18:46:07 +01:00

onedrive: fix root ID not normalised #2930

This commit is contained in:
Cnly 2019-01-24 11:52:01 +08:00
parent 5f0a8a4e28
commit ea12d76c03

View File

@ -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)