* Splits a path into segments. * @param {string} path Normalized path * @returns {string[]} Path segments
(path)
| 240 | * @returns {string[]} Path segments |
| 241 | */ |
| 242 | #splitPath(path) { |
| 243 | if (path === '/') { |
| 244 | return []; |
| 245 | } |
| 246 | return path.slice(1).split('/'); |
| 247 | } |
| 248 | |
| 249 | |
| 250 | /** |
no test coverage detected