• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 218
  • Last Modified:

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
0
khacharn
Asked:
khacharn
1 Solution
 
ozoCommented:
use Net::FTP;
$ftp = Net::FTP->new("some.host.name");
$ftp->login("anonymous","me@here.there");
@ls = $ftp->ls("/pub");
0
 
mrachowCommented:
There is another ftp command:
mget (multiple get).
With this one you can use wildcard expressions, e.g. for your problem: *.
0
 
khacharnAuthor Commented:
Thanx both for your insights...
regards
Nitin
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now