Solved

Retriving all the files from a particular directory

Posted on 2000-02-23
3
208 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how do I grep for a specfic DNS record in a directory 3 49
cpan issue 1 66
Using Perl DBI to query oracle 3 48
Control Number of Log Files -Perl 7 94
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
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…

713 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