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