readdir()
function readdir(resource $dir_handle): mixed
Read entry from directory handle.
Parameters:
$dir_handle(resource)
Returns: mixed
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/filesystem/readdir.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how readdir is implemented in the compiler, see the internals page.