Solved

Retriving all the files from a particular directory

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

786 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