Basic module

set_working_directory

procedure · 1 overloadSource

Makes s the working directory of the whole program, for every thread, and returns whether it worked. A missing path, a file, a directory without permission to enter, an empty path and a path with a NUL byte give false and change nothing.

set_working_directory :: (s: string) -> bool

Parameters

s: string

Returns

bool
ExampleOpen in playground ↗
assert(!set_working_directory("jai-doc-no-such-directory/inner"));

See also