Skip to content

Filepath Native

Spice
import "std/io/filepath_native";

Functions

resolveCanonicalPath

Spice
public f<String> resolveCanonicalPath(const String& path)

Resolves a path to an absolute, symlink-free, '.'/'..' -free canonical form.

Parameters

Name Type Description
path const String& Path to resolve

Returns: String — The canonical path, or an empty string if resolution failed (e.g. the path does not exist)