Method resolve()
If pathComponents
start with /
or ~
, returns the Path
corresponding to the given path string.
Otherwise, returns the Path
with additional pathComponents
appended.
Examples:
local path = parsePath("/foo/bar")
path:resolve("baz.txt") -- "foo/bar/baz.txt"
path:resolve("/baz.txt") -- "/baz.txt"