Solved

Retriving all the files from a particular directory

Posted on 2000-02-23
1
166 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
1 Comment
 

Accepted Solution

by:
KishoreS78 earned 50 total points
Comment Utility
try this
use NET::ftp ;

after making ftp connection and reaching the desired directory

@files = $ftp->ls;
foreach $no (@files) {
ftp->get $file[$no];
}

dunno if NET::ftp module has mget support.
also syntax i have written maynot be correct
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

743 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

9 Experts available now in Live!

Get 1:1 Help Now