--- IO-AIO/AIO.pm 2005/08/23 00:03:14 1.36 +++ IO-AIO/AIO.pm 2005/08/23 12:37:19 1.37 @@ -68,7 +68,7 @@ $VERSION = 1.6; @EXPORT = qw(aio_read aio_write aio_open aio_close aio_stat aio_lstat aio_unlink - aio_rmdir aio_symlink aio_fsync aio_fdatasync aio_readahead); + aio_rmdir aio_readdir aio_symlink aio_fsync aio_fdatasync aio_readahead); @EXPORT_OK = qw(poll_fileno poll_cb min_parallel max_parallel max_outstanding nreqs); require XSLoader; @@ -233,6 +233,15 @@ Asynchronously rmdir (delete) a directory and call the callback with the result code. +=item aio_readdir $pathname $callback + +Unlike the POSIX call of the same name, C reads an entire +directory (i.e. opendir + readdir + closedir). The entries will not be +sorted, and will B include the C<.> and C<..> entries. + +The callback a single argument which is either C or an array-ref +with the filenames. + =item aio_fsync $fh, $callback Asynchronously call fsync on the given filehandle and call the callback