std.env.working_directory=
Show source codeHide source code
fn pub working_directory=(directory: ref Path) -> Result[Nil, Error] {
sys.working_directory = directory
}
fn pub static working_directory=(directory: ref Path) -> Result[Nil, Error]
Changes the current working directory to the given directory.
Examples
Changing the current working directory:
import std.env
env.working_directory = '..'.to_path