* Join a URI with path segments * * @param base - The base URI * @param pathSegments - Path segments to join * @returns A new Uri with the joined path
(base: Uri, ...pathSegments: string[])
| 74 | * @returns A new Uri with the joined path |
| 75 | */ |
| 76 | static joinPath(base: Uri, ...pathSegments: string[]): Uri { |
| 77 | const joinedPath = path.join(base.path, ...pathSegments) |
| 78 | return new Uri(base.scheme, base.authority, joinedPath, base.query, base.fragment) |
| 79 | } |
| 80 | |
| 81 | /** |
| 82 | * Create a new URI with modifications |
no outgoing calls
no test coverage detected