Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Net::FTP Problem

by Malach (Scribe)
on Jun 01, 2001 at 02:34 UTC ( [id://84825]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to NET::FTP : Recursively search FTP directories (was: Net::FTP Problem)

#!/usr/bin/perl use Net::FTP; $ftp = Net::FTP->new("host.name"); $ftp->login("user","password"); @data=$ftp->ls("-Rla"); $ftp->quit; foreach $line (@data) { print $line."\n"; }

From there, it's just text parsing......

Malach
So, this baby seal walks into a club.....

Replies are listed 'Best First'.
Re: Re: Net::FTP Problem
by Hero Zzyzzx (Curate) on Jun 03, 2001 at 00:29 UTC

    Are these switches ("-Rla") implemented the same in all FTP servers? There's like a billion servers out there, and not all of them are totally standards compliant.

    If most of them do use these switches correctly, this is an excellent way to recurse (IMHO). If not, you may need to look a little harder.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://84825]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.