open fun replaceLastName(name: String): RelativePath
Returns a copy of this path, with the last name replaced with the given name.
name - The name.
name
Return The path.