AnyEvent-FTP

 view release on metacpan or  search on metacpan

lib/AnyEvent/FTP/Client.pm  view on Meta::CPAN

Remove a directory on the remote server.

=head2 help

 $client->help;

Gets a list of commands understood by the server.
The actual format depends on the server.

=head2 dele

 $client->dele( $path );

Delete the file on the remote server.

=head2 rnfr

 $client->rnfr;

Specify the old name for renaming a file.  See C<rename> method for a shortcut.

=head2 rnto

 $client->rnto;

Specify the new name for renaming a file.  See C<rename> method for a shortcut.

=head2 noop

 $client->noop;

Don't do anything.  The server will send an OK reply.

=head2 allo

 $client->allo( $size );

Send the FTP C<ALLO> command.  Is not used by modern FTP servers.  See RFC959 for details.

=head2 syst

 $client->syst;

Returns the type of operating system used by the server.

=head2 stru

 $client->stru;

Specify the file structure mode.  This is not used by modern FTP servers.  See RFC959 for details.

=head2 mode

 $client->mode

Specify the transfer mode.  This is not used by modern FTP servers.  See RFC959 for details.

=head2 stat

 $client->stat;
 $client->stat($path);

Get information about a file or directory on the remote server.  The actual format is totally
server dependent.

=head2 user

 $client->user( $username );

Specify the user to login as.  See C<connect> or C<login> methods for a shortcut.

=head2 pass

 $client->pass( $pass );

Specify the password to use for login.  See C<connect> or C<login> methods for a shortcut.

=head2 acct

 $client->acct( $acct );

Specify user's account.  This is sometimes used for authentication and authorization when you login
to some servers, but is seldom used today in practice.  See RFC959 for details.

=head2 size

 $client->size( $path );

Get the size of the remote file specified by C<$path>.  This is an extension to the FTP
standard specified in RFC3659, and may not be implemented by older (or even newer)
servers.

Send the size of the file on success, instead of the response object.

=head2 mdtm

 $client->mdtm( $path );

Get the modification time of the remote file specified by C<$path>.  This is an extension to the FTP standard
specified in RFC3659, and may not be implemented by older (or even newer) servers.

=head2 quit

 $client->quit;

Send the FTP C<QUIT> command and close the connection to the remote server.

=head2 site

 $client->site;

The C<site> method provides an interface to site specific FTP commands.  Many
FTP servers will support an extended set of commands using the standard FTP
C<SITE> command.  This command will not check to see if the site commands are
supported by the remote server, so it is up to you to determine if you can
really use these interfaces yourself.

=over 4

=item $client-E<gt>site-E<gt>microsoft



( run in 0.712 second using v1.01-cache-2.11-cpan-39bf76dae61 )