uce/site/doc/pages/cwd_set.txt
2026-06-16 23:02:45 +00:00

18 lines
343 B
Plaintext

:sig
void cwd_set(String path)
:params
path : the new working directory
:see
>sys
:content
Sets the host worker process current directory. In wasm this is a hostcall, so restore the previous directory when using it inside request code.
:example
String old = cwd_get();
cwd_set("/tmp");
print("cwd is now ", cwd_get(), "\n");
cwd_set(old);