mirror of https://github.com/Xhofe/alist
🐛 fix windows sharepoint path error
parent
7f35dc6ade
commit
fa6c0f78bc
|
@ -55,7 +55,7 @@ func (driver Onedrive) GetMetaUrl(account *model.Account, auth bool, path string
|
||||||
}
|
}
|
||||||
case "sharepoint":
|
case "sharepoint":
|
||||||
{
|
{
|
||||||
if path == "/" {
|
if path == "/" || path == "\\" {
|
||||||
return fmt.Sprintf("%s/v1.0/sites/%s/drive/root", host.Api, account.SiteId)
|
return fmt.Sprintf("%s/v1.0/sites/%s/drive/root", host.Api, account.SiteId)
|
||||||
} else {
|
} else {
|
||||||
return fmt.Sprintf("%s/v1.0/sites/%s/drive/root:%s:", host.Api, account.SiteId, path)
|
return fmt.Sprintf("%s/v1.0/sites/%s/drive/root:%s:", host.Api, account.SiteId, path)
|
||||||
|
|
Loading…
Reference in New Issue