sys_get_temp_dir()
function sys_get_temp_dir(): string
Returns the directory path used for temporary files.
Parameters: none.
Returns: string
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/filesystem/sys_get_temp_dir.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how sys_get_temp_dir is implemented in the compiler, see the internals page.