From fa6c0f78bcf9db9cdbc6213e483586c1045d2bc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=AE=E5=87=89?= Date: Tue, 30 Nov 2021 16:45:08 +0800 Subject: [PATCH] :bug: fix windows sharepoint path error --- drivers/onedrive.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)