NAME

Net::FTP::Recursive::AutoReconnect - FTP client class with recursive and automatic reconnect on failure

SYNOPSIS

use Net::FTP::Recursive::AutoReconnect;

my $host = 'localhost';
my $timeout = '10';

my $user = 'username';
my $pass = 'passwort';
my $ftp = Net::FTP::Recursive::AutoReconnect->new($host, Timeout => $timeout, Debug => 0) or warn "$user: Cannot connect to $host: $@";
$ftp->login($user,$pass) or warn "$user $pass: Cannot login ", $ftp->message;
$ftp->cwd("/") or warn "$user: Cannot change working directory ", $ftp->message;

my $writefh;
my $fh;
open($fh,">",\$writefh);
binmode($fh);

print $ftp->rdir( FilenameOnly => 1, Filehandle => $fh, PrintType => 1 );
$ftp->quit;
close($fh);
print $writefh;

DESCRIPTION

FTP client class with recursive and automatic reconnect on failure

SEE ALSO

Net::FTP.

COPYRIGHT

see Net::FTP, Net::FTP::Recursive and Net::FTP::AutoReconnect