replaceLastName

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

Return

The path.

Parameters

name

The name.