## 例

`

     resource eio_readdir ( string $path , int $flags , int $pri , mixed $callback [, string $data = NULL ] )

`

## 説明

Reads through a whole directory(via the opendir, readdir and closedir system calls) and returns either the names or an array in result argument of callback function, depending on the flags argument.

## 戻り値

eio_readdir() returns request resource on success, or FALSE on error. Sets result argument of callback function according to flags: