Link to home
Start Free TrialLog in
Avatar of khacharn
khacharn

asked on

Retriving all the files from a particular directory

hi all i want to retrieve all the files from a particular director from a FTP server..using FTP..
I can retrive a file from the directory if i know its filename using get..
but if i want to download all the file in the directoiry and i don't know the file name..it become a problem..
Please help
Regards
Nitin..ps.URGENT
Avatar of ozo
ozo
Flag of United States of America image

use Net::FTP;
$ftp = Net::FTP->new("some.host.name");
$ftp->login("anonymous","me@here.there");
@ls = $ftp->ls("/pub");
ASKER CERTIFIED SOLUTION
Avatar of mrachow
mrachow

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of khacharn
khacharn

ASKER

Thanx both for your insights...
regards
Nitin