diff --git a/drivers/onedrive.go b/drivers/onedrive.go index 71f79ed0..f4703ff2 100644 --- a/drivers/onedrive.go +++ b/drivers/onedrive.go @@ -55,7 +55,7 @@ func (driver Onedrive) GetMetaUrl(account *model.Account, auth bool, path string } case "sharepoint": { - if path == "/" { + if path == "/" || path == "\\" { return fmt.Sprintf("%s/v1.0/sites/%s/drive/root", host.Api, account.SiteId) } else { return fmt.Sprintf("%s/v1.0/sites/%s/drive/root:%s:", host.Api, account.SiteId, path)