--- IO-AIO/AIO.pm 2005/12/26 19:20:26 1.45 +++ IO-AIO/AIO.pm 2006/02/16 16:38:57 1.48 @@ -69,7 +69,7 @@ use Fcntl (); BEGIN { - $VERSION = '1.71'; + $VERSION = '1.72'; @EXPORT = qw(aio_sendfile aio_read aio_write aio_open aio_close aio_stat aio_lstat aio_unlink aio_rmdir aio_readdir aio_scandir aio_symlink @@ -239,7 +239,7 @@ Asynchronously rmdir (delete) a directory and call the callback with the result code. -=item aio_readdir $pathname $callback->($entries) +=item aio_readdir $pathname, $callback->($entries) Unlike the POSIX call of the same name, C reads an entire directory (i.e. opendir + readdir + closedir). The entries will not be @@ -284,7 +284,7 @@ non-initial dot) and likely non-directories (everything else). Then every entry + C will be C'ed, likely directories first. This is often faster because filesystems might detect the type of the entry without -reading the inode data (e.g. ext2s filetype feature). If that succeeds, +reading the inode data (e.g. ext2fs filetype feature). If that succeeds, it assumes that the entry is a directory or a symlink to directory (which will be checked seperately). @@ -300,7 +300,7 @@ # stat once aio_stat $path, sub { - $cb->() if $_[0]; + return $cb->() if $_[0]; my $hash1 = join ":", (stat _)[0,1,3,7,9]; # read the directory entries