getSegment
Deprecated
Renamed to get(index)
Replace with
get(index)Content copied to clipboard
Returns the path segment at the specified index.
Return
The segment string at the given position.
Parameters
index
The zero-based index of the segment to retrieve.
Throws
if the index is out of range.