diff --git a/core/src/services/webdav/lister.rs b/core/src/services/webdav/lister.rs index fa125711ba6b..67b81e5e9173 100644 --- a/core/src/services/webdav/lister.rs +++ b/core/src/services/webdav/lister.rs @@ -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; }