Returns a resolved Path object relative to the given pathname.
function resolvePath(to: To, fromPathname = "/"): Path
The path to resolve, either a string or a partial Path object.
The pathname to resolve the path from. Defaults to /.
A Path object with the resolved pathname, search, and hash.