File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 8a9df5aa38f63c9864dc560baadec95575188997
2
+ refs/heads/master: 1db88e793756f691dd5b186b470117104a659883
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
Original file line number Diff line number Diff line change @@ -200,9 +200,17 @@ fn splitext(p: path) -> (str, str) {
200
200
}
201
201
202
202
#[ doc = "
203
- Removes extra '.' and '..' entries from paths
203
+ Collapses redundant path separators.
204
204
205
205
Does not follow symbolic links.
206
+
207
+ # Examples
208
+
209
+ * '/a/../b' becomes '/b'
210
+ * 'a/./b/' becomes 'a/b/'
211
+ * 'a/b/../../../' becomes '..'
212
+ * '/a/b/c/../d/./../../e/' becomes '/a/e/'
213
+
206
214
" ]
207
215
fn normalize( p : path ) -> path {
208
216
let s = split ( p) ;
You can’t perform that action at this time.
0 commit comments