base: add path_join

This commit is contained in:
luboslenco
2026-03-01 15:21:29 +01:00
parent 540a735a68
commit ffd6cda66e
+9
View File
@@ -184,3 +184,12 @@ function path_is_protected(): bool {
return false;
/// end
}
function path_join(a: string, b: string): string {
let path: string = a;
if (!ends_with(path, path_sep)) {
path += path_sep;
}
path += b;
return path;
}