Madhan Madhan - 1 year ago 74
Perl Question

Download a directory from ftp using perl

Is it possible to download folders from any of repository in ftp using perl?

Answer Source

Check out Net::Lite::FTP, the synopsis of the module seems to do exactly what you need. I've copied it here for reference:

use Net::Lite::FTP;
my $tlsftp=Net::Lite::FTP->new();
my $files=$tlsftp->nlst("*.exe");
foreach $f (@files) {
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download