Uri.setPath

Sets or unsets the path in the URI.

class Uri
bool
setPath
(
string path = null
)

Parameters

path string

The new path to set with path segments separated by '/', or use null to unset the path.

Return Value

Type: bool

true if the path was set successfully.