resolveSibling

fun resolveSibling(fileName: ByteString): RelativePath

Resolve a file name against the parent of this relative path.

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

Return

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

Parameters

fileName

the file name

See also

Throws

if this relative path is empty.

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