… | |
… | |
795 | =item aio_rename $srcpath, $dstpath, $callback->($status) |
795 | =item aio_rename $srcpath, $dstpath, $callback->($status) |
796 | |
796 | |
797 | Asynchronously rename the object at C<$srcpath> to C<$dstpath>, just as |
797 | Asynchronously rename the object at C<$srcpath> to C<$dstpath>, just as |
798 | rename(2) and call the callback with the result code. |
798 | rename(2) and call the callback with the result code. |
799 | |
799 | |
|
|
800 | On systems that support the AIO::WD working directory abstraction |
|
|
801 | natively, the case C<[$wd, "."]> as C<$srcpath> is specialcased - instead |
|
|
802 | of failing, C<rename> is called on the absolute path of C<$wd>. |
|
|
803 | |
800 | |
804 | |
801 | =item aio_mkdir $pathname, $mode, $callback->($status) |
805 | =item aio_mkdir $pathname, $mode, $callback->($status) |
802 | |
806 | |
803 | Asynchronously mkdir (create) a directory and call the callback with |
807 | Asynchronously mkdir (create) a directory and call the callback with |
804 | the result code. C<$mode> will be modified by the umask at the time the |
808 | the result code. C<$mode> will be modified by the umask at the time the |
… | |
… | |
807 | |
811 | |
808 | =item aio_rmdir $pathname, $callback->($status) |
812 | =item aio_rmdir $pathname, $callback->($status) |
809 | |
813 | |
810 | Asynchronously rmdir (delete) a directory and call the callback with the |
814 | Asynchronously rmdir (delete) a directory and call the callback with the |
811 | result code. |
815 | result code. |
|
|
816 | |
|
|
817 | On systems that support the AIO::WD working directory abstraction |
|
|
818 | natively, the case C<[$wd, "."]> is specialcased - instead of failing, |
|
|
819 | C<rmdir> is called on the absolute path of C<$wd>. |
812 | |
820 | |
813 | |
821 | |
814 | =item aio_readdir $pathname, $callback->($entries) |
822 | =item aio_readdir $pathname, $callback->($entries) |
815 | |
823 | |
816 | Unlike the POSIX call of the same name, C<aio_readdir> reads an entire |
824 | Unlike the POSIX call of the same name, C<aio_readdir> reads an entire |
… | |
… | |
1572 | |
1580 | |
1573 | aio_realpath $wd, sub { |
1581 | aio_realpath $wd, sub { |
1574 | warn "path is $_[0]\n"; |
1582 | warn "path is $_[0]\n"; |
1575 | }; |
1583 | }; |
1576 | |
1584 | |
|
|
1585 | Currently, C<aio_statvfs> always, and C<aio_rename> and C<aio_rmdir> |
|
|
1586 | sometimes, fall back to using an absolue path. |
1577 | |
1587 | |
1578 | =head2 IO::AIO::REQ CLASS |
1588 | =head2 IO::AIO::REQ CLASS |
1579 | |
1589 | |
1580 | All non-aggregate C<aio_*> functions return an object of this class when |
1590 | All non-aggregate C<aio_*> functions return an object of this class when |
1581 | called in non-void context. |
1591 | called in non-void context. |