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