UniEvent

 view release on metacpan or  search on metacpan

lib/UniEvent/Fs.pod  view on Meta::CPAN

RETURNS: bool


=head2 access($path, [$mode = 0], [$callback], [$loop])

Determines accessability of the file. The mode is common unix filepath
permissions, i.e. C<1> for execute, C<2> for writing, C<4> for reading.

RETURNS: void


=head2 sync($fd, [$callback], [$loop])

Synchronizes file data and metadata specified by C<$fd> with storage.

RETURNS: void


=head2 datasync($fd, [$callback], [$loop])

Synchronizes file data specified by C<$fd> with storage.

RETURNS: void


=head2 truncate($path_or_fd, [$length = 0], [$callback], [$loop])

Causes the file to have size exactly C<$length> bytes.

RETURNS: void


=head2 chmod($path_or_fd, $mode, [$callback], [$loop])

Changes file mode (permissions).

RETURNS: void


=head2 touch($path, [$mode = DEFAULT_FILE_MODE], [$callback], [$loop])

Updates file's C<mtime>, creating the file if it does not exist with mode C<$mode>.

RETURNS: void


=head2 utime($path_or_fd, $atime, $mtime, [$callback], [$loop])

Changes file access and modification times.

RETURNS: void


=head2 lutime($path, $atime, $mtime, [$callback], [$loop])

Changes file access and modification times. Does not follow symlinks.

RETURNS: void


=head2 chown($path_or_fd, $uid, $gid, [$callback], [$loop])

Changes file user and group ownership.

RETURNS: void


=head2 lchown($path_or_fd, $uid, $gid, [$callback], [$loop])

C<chown> variant for symbolic links (does not follow symlinks).

RETURNS: void


=head2 rename($from, $to, [$callback], [$loop])

Changes name or location of a file.

RETURNS: void


=head2 sendfile($fd_in, $fd_out, $offset, $length, [$callback], [$loop])

Causes OS kernel to transfer bytes between file descriptors.

RETURNS: number of bytes written to C<$fd_out>


=head2 link($from, $to, [$callback], [$loop])

Make a new hardlink for a regular file.

RETURNS: void


=head2 symlink($from, $to, [$flags = 0], [$callback], [$loop])

Make a new symbolic link for a file.

On Windows the C<$flags> parameter can be specified to control how the symlink will be created (UE::Fs::*):

=over

=item SYMLINK_DIR

Indicates that path points to a directory

=item SYMLINK_JUNCTION

request that the symlink is created using junction points.

=back

RETURNS: void


=head2 readlink($path, [$callback], [$loop])

Read the contents of a symbolic link, i.e. where the link points to.

RETURNS: string


=head2 realpath($path, [$callback], [$loop])

Return the canonicalized absolute pathname.

RETURNS: string




( run in 0.720 second using v1.01-cache-2.11-cpan-5511b514fd6 )