resolveSibling

fun resolveSibling(fileName: ByteString): Path

Resolve a file name against the parent of this path.

The file name is resolved by replacing the last name of this path with it.

Return

a path that is the file name resolved against the parent of this path

Parameters

fileName

the file name

See also

Throws

if this path identifies the root of its file hierarchy.

if the file name is empty or contains the URI name separator /