(p1: Path, ...others: string[])
| 108 | * normalized as well (but the original must be a path). |
| 109 | */ |
| 110 | export function join(p1: Path, ...others: string[]): Path { |
| 111 | if (others.length > 0) { |
| 112 | return normalize((p1 ? p1 + NormalizedSep : '') + others.join(NormalizedSep)); |
| 113 | } else { |
| 114 | return p1; |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | /** |
| 119 | * Returns true if a path is absolute. |
no test coverage detected