Skip to content

Commit

Permalink
fix webdav lister path panic
Browse files Browse the repository at this point in the history
  • Loading branch information
zjregee committed Feb 27, 2024
1 parent 7168fa3 commit a24780e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/services/webdav/lister.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ impl oio::PageList for WebdavLister {
.unwrap_or(&res.href);

// Ignore the root path itself.
if self.root == path {
if self.root == path || self.root.trim_end_matches('/') == path {
continue;
}

Expand Down

0 comments on commit a24780e

Please sign in to comment.