std.fs.chdir

std.fs

chdir(path) -> ok, err

Change the current working directory

Changes the process's current working directory to path. Returns true on success, or nil and an error string on failure (e.g., path does not exist or permission denied).