(filename)
| 1980 | // 'root' is just a slash, or nothing. |
| 1981 | var splitPathRe = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/; |
| 1982 | var splitPath = function splitPath(filename) { |
| 1983 | return splitPathRe.exec(filename).slice(1); |
| 1984 | }; |
| 1985 | |
| 1986 | // path.resolve([from ...], to) |
| 1987 | // posix version |