* Parse a path into an array containing a root component (at index 0) and zero or more path * components (at indices > 0). The result is not normalized. * If the path is relative, the root component is `""`. * If the path is absolute, the root component includes the first path separat
(path, currentDirectory)
| 7838 | * getPathComponents("file://") === ["file://"] |
| 7839 | */ |
| 7840 | function getPathComponents(path, currentDirectory) { |
| 7841 | if (currentDirectory === void 0) { currentDirectory = ""; } |
| 7842 | path = combinePaths(currentDirectory, path); |
| 7843 | return pathComponents(path, getRootLength(path)); |
| 7844 | } |
| 7845 | ts.getPathComponents = getPathComponents; |
| 7846 | //// Path Formatting |
| 7847 | /** |
no test coverage detected
searching dependent graphs…