File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -80,13 +80,14 @@ impl oio::PageList for WebdavLister {
80
80
path += "/"
81
81
}
82
82
83
+ let decoded_path = percent_decode_path ( & path) ;
84
+
83
85
// Ignore the root path itself.
84
- if self . core . root == path {
86
+ if self . core . root == decoded_path {
85
87
continue ;
86
88
}
87
89
88
- let normalized_path = build_rel_path ( & self . core . root , & path) ;
89
- let decoded_path = percent_decode_path ( & normalized_path) ;
90
+ let normalized_path = build_rel_path ( & self . core . root , & decoded_path) ;
90
91
91
92
// HACKS! HACKS! HACKS!
92
93
//
@@ -97,7 +98,8 @@ impl oio::PageList for WebdavLister {
97
98
continue ;
98
99
}
99
100
100
- ctx. entries . push_back ( oio:: Entry :: new ( & decoded_path, meta) )
101
+ ctx. entries
102
+ . push_back ( oio:: Entry :: new ( & normalized_path, meta) )
101
103
}
102
104
ctx. done = true ;
103
105
You can’t perform that action at this time.
0 commit comments