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
| Export | Role |
|---|---|
join | join native function or exported value |
basename | basename native function or exported value |
dirname | dirname native function or exported value |
extension | extension 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.
