path/core

sourcepath/core.sx

get_name_without_ext

pub fn get_name_without_ext(arena: ref allocators.Arena, path: ref u8) ref u8

Gets the name of some file path without the file extension.

join

pub fn join(dir: ref u8, name: ref u8) ref u8 = trust { ... }

Join dir + "/" + name, returning a heap-allocated string.

dir

pub fn dir(path: ref u8) ref u8 = trust { ... }

canonicalize_path

pub fn canonicalize_path(path: ref u8) ref u8 = trust { ... }