path_join
host callCapy
function path_join(base : string, child : string) string
Description
path_join() joins base and child with one slash when needed.
An absolute child replaces base. This function does not resolve dot segments.
Parameters
base : the base path
child : the path to append
Return Values
the joined path
Example
Capy
print(path_join("/var/www", "site/index.capy"), "\n")