Solved

Retriving all the files from a particular directory

Posted on 2000-02-23
3
198 Views
Last Modified: 2010-03-05
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
Comment
Question by:khacharn
3 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 2553482
use Net::FTP;
$ftp = Net::FTP->new("some.host.name");
$ftp->login("anonymous","me@here.there");
@ls = $ftp->ls("/pub");
0
 
LVL 1

Accepted Solution

by:
mrachow earned 50 total points
ID: 2558122
There is another ftp command:
mget (multiple get).
With this one you can use wildcard expressions, e.g. for your problem: *.
0
 

Author Comment

by:khacharn
ID: 2560344
Thanx both for your insights...
regards
Nitin
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now