Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: Xuanwo <[email protected]>
  • Loading branch information
Xuanwo committed Feb 23, 2024
1 parent 849ba70 commit 407cd4e
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions core/src/services/webdav/lister.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down Expand Up @@ -101,18 +101,18 @@ impl ListOpResponse {
pub fn parse_into_metadata(&self) -> Result<Metadata> {
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::<Vec<_>>()[..3] {
Expand Down

0 comments on commit 407cd4e

Please sign in to comment.