🌻 📖 AnyEvent::FTP::Client::Response

NAME

AnyEvent::FTP::Client::Response - Response class for asynchronous ftp client

VERSION

version 0.19

DESCRIPTION

Instances of this class get sent to condition variables returned by commands in AnyEvent::FTP::Client.

SUPER CLASS

AnyEvent::FTP::Response

METHODS

get_address_and_port

 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.

get_dir

 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.

get_file

 my $filename = $res->get_file;

Returns the filename from a response to the STOU command.

AUTHOR

Author: Graham Ollis <plicease@cpan.org>

Contributors:

Ryo Okamoto

Shlomi Fish

José Joaquín Atria

COPYRIGHT AND LICENSE

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.