mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-23 05:44:04 +08:00
🐛 fix windows sharepoint path error
This commit is contained in:
parent
7f35dc6ade
commit
fa6c0f78bc
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user