Narra

Reference

std/path

std/path

File paths as text: join, folder, base name and extension.

narra
import * as Path from "std/path"

The guide teaches it in chapter 11, Files and the system.

This page is generated by scripts/std/generate.nra from narrac query --json interface std/path. Do not edit it.

Functions

basename

narra
export function basename(path: string): string uses alloc

Effects: alloc.

dirname

narra
export function dirname(path: string): string uses alloc

Effects: alloc.

extname

narra
export function extname(path: string): string uses alloc

Effects: alloc.

join

narra
export function join(first: string, second: string): string uses alloc

Effects: alloc.