AnyEvent::FTP::Client::Response - Response class for asynchronous ftp client
version 0.19
Instances of this class get sent to condition variables returned by commands in AnyEvent::FTP::Client.
AnyEvent::FTP::Response
my($ip, $port) = $res->get_address_and_port
This method is used to parse the response to the PASV command to extract the IP address and port number.
PASV
my $dir = $res->get_dir
This method is used to extract the path from a response to the PWD command. It returns the path as a simple string.
PWD
my $filename = $res->get_file;
Returns the filename from a response to the STOU command.
STOU
Author: Graham Ollis <plicease@cpan.org>
Contributors:
Ryo Okamoto
Shlomi Fish
José Joaquín Atria
This software is copyright (c) 2017-2021 by Graham Ollis.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install AnyEvent::FTP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AnyEvent::FTP
CPAN shell
perl -MCPAN -e shell install AnyEvent::FTP
For more information on module installation, please visit the detailed CPAN module installation guide.