← All docs
mkdir() — internals
Compiler internals for mkdir(): lowering path, type checks, and runtime helpers.
mkdir() — internals
Where it lives
- Signature:
src/builtins/io/mkdir.rs - Lowering:
src/codegen/lower_inst/builtins/io.rs:4424 (lower_mkdir) - Function symbol:
lower_mkdir()
Lowering notes
- Lowers
mkdir(path)through the target-aware runtime helper.
Runtime helpers
The following runtime helpers are referenced:
__rt_chdir__rt_copy__rt_mkdir__rt_rmdir__rt_tempnam
Signature summary
function mkdir(string $directory): bool
What the type checker enforces
- Arity: takes exactly 1 argument.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/filesystem/mkdir.rs(eval_builtin!) - Dispatch hooks:
direct,values