UCE Docs / path_join

Signature

String path_join(String base, String child)

Parameters

base : base path
child : path to append
return value : the two joined with a single separator

Joins two path fragments with exactly one separator, regardless of whether base ends in a slash or child begins with one. Use it instead of string concatenation to build paths safely.

Example

print(path_join("/var/www", "site/index.uce"), "\n");
Output
/var/www/site/index.uce