greenServeFE logogreenServeFELanguage, VM and Native Module Reference

Documentation home / Native Module API

Native Module API

Path Utilities

Join path segments and inspect a path's final component, parent directory and extension.

Purpose

Join path segments and inspect a path's final component, parent directory and extension.

Exported API

ExportRole
joinjoin native function or exported value
basenamebasename native function or exported value
dirnamedirname native function or exported value
extensionextension native function or exported value

Usage example

import gs_path;
define path = gs_path.join("projects", "greenServeFE", "main.gsve");
print(path);
print(gs_path.basename(path));
print(gs_path.dirname(path));
print(gs_path.extension(path));
Path handling follows the native platform's path conventions; it is not a URL path normalizer.

Related documentation