uce/site/doc/pages/cwd_set.txt
2026-06-15 10:53:36 +00:00

17 lines
330 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 real hostcall, so restore the previous directory when using it inside request code.
## Related Concepts
- PHP: `chdir()`
- JavaScript / Node.js: Node `process.chdir()`