replaceLastName

open fun replaceLastName(name: String): RelativePath

Returns a copy of this path, with the last name replaced with the given name.

Return

The path.

Parameters

name

The name.