invoke

operator fun invoke(rootUri: Uri, names: List<ByteString>): Path

Create a new path from a root URI and a list of names.

Return

the new path

Parameters

rootUri

the root URI

names

the list of names

Throws

if the root URI doesn't have a scheme, or the path component of the root URI isn't /, or any of the names is empty or contains the URI name separator /