(p1: Path, p2: Path)
| 165 | * otherwise will join both p1 and p2. |
| 166 | */ |
| 167 | export function resolve(p1: Path, p2: Path): Path { |
| 168 | if (isAbsolute(p2)) { |
| 169 | return p2; |
| 170 | } else { |
| 171 | return join(p1, p2); |
| 172 | } |
| 173 | } |
| 174 | |
| 175 | export function fragment(path: string): PathFragment { |
| 176 | if (path.indexOf(NormalizedSep) != -1) { |
no test coverage detected