toRelativePath

fun toRelativePath(startIndex: Int = 0, endIndex: Int = names.size): RelativePath

Get a relative path consisting of a sublist of names of this path.

Return

a relative path consisting of a sublist of names of this path

Parameters

startIndex

the index of the first name, inclusive

endIndex

the index of the last name, exclusive