Skip to content

Filesystem

Spice
import "std/os/filesystem";

Functions

getTempDir

Spice
public f<string> getTempDir()

Retrieve the path to the system's temporary directory

Returns: string — Path to the temporary directory

getCurrentWorkingDir

Spice
public f<String> getCurrentWorkingDir()

Retrieve the current working directory of the process

Returns: String — Absolute path of the current working directory, or an empty string if it could not be determined