Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Net::FTP Problem

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


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 04: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
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-07-13 05:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.