… | |
… | |
426 | with the filenames. |
426 | with the filenames. |
427 | |
427 | |
428 | =item aio_scandir $path, $maxreq, $callback->($dirs, $nondirs) |
428 | =item aio_scandir $path, $maxreq, $callback->($dirs, $nondirs) |
429 | |
429 | |
430 | Scans a directory (similar to C<aio_readdir>) but additionally tries to |
430 | Scans a directory (similar to C<aio_readdir>) but additionally tries to |
431 | separate the entries of directory C<$path> into two sets of names, ones |
431 | efficiently separate the entries of directory C<$path> into two sets of |
432 | you can recurse into (directories or links to them), and ones you cannot |
432 | names, directories you can recurse into (directories), and ones you cannot |
433 | recurse into (everything else). |
433 | recurse into (everything else, including symlinks to directories). |
434 | |
434 | |
435 | C<aio_scandir> is a composite request that creates of many sub requests_ |
435 | C<aio_scandir> is a composite request that creates of many sub requests_ |
436 | C<$maxreq> specifies the maximum number of outstanding aio requests that |
436 | C<$maxreq> specifies the maximum number of outstanding aio requests that |
437 | this function generates. If it is C<< <= 0 >>, then a suitable default |
437 | this function generates. If it is C<< <= 0 >>, then a suitable default |
438 | will be chosen (currently 6). |
438 | will be chosen (currently 6). |