From 407cd4e07ee9543ad74de1c9770bd322f424e0d1 Mon Sep 17 00:00:00 2001 From: Xuanwo Date: Fri, 23 Feb 2024 13:38:44 +0800 Subject: [PATCH] fix typo Signed-off-by: Xuanwo --- core/src/services/webdav/lister.rs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/core/src/services/webdav/lister.rs b/core/src/services/webdav/lister.rs index 684389936727..a5114a8fbe85 100644 --- a/core/src/services/webdav/lister.rs +++ b/core/src/services/webdav/lister.rs @@ -53,7 +53,7 @@ impl oio::PageList for WebdavLister { let oes = self.multistates.response.clone(); for res in oes { - let path = match res.href.strip_suffix(&self.server_path) { + let path = match res.href.strip_prefix(&self.server_path) { Some(p) => p, None => &res.href, }; @@ -101,18 +101,18 @@ impl ListOpResponse { pub fn parse_into_metadata(&self) -> Result { let ListOpResponse { propstat: - Propstat { - prop: - Prop { - getlastmodified, - getcontentlength, - getcontenttype, - getetag, - resourcetype, - .. + Propstat { + prop: + Prop { + getlastmodified, + getcontentlength, + getcontenttype, + getetag, + resourcetype, + .. + }, + status, }, - status, - }, .. } = self; if let [_, code, text] = status.split(' ').collect::>()[..3] {