eio_readdir

Example

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

Description

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.

Return Values

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