Replace the path segments list in the URI.
The Uri to modify.
The new path list to set.
true if the path segments were set successfully.
true