Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Remote Directory listing

by ambrus (Abbot)
on Jul 08, 2012 at 16:47 UTC ( [id://980595]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!perl
    
    ...
    use LWP ();
    use Date::Manip::Date ();
    use Sys::Hostname ();
    
  2. or download this
    use XML::Twig ();
    use Time::HiRes ();
    
  3. or download this
    
    
    ...
        $keepd{$dirs} = 1;
        push @mkdir, $dir;
    
  4. or download this
        wrlog "getting directory " . $edir;
        my $resp = $LWP->get($baseurl . $edir);
    ...
                    my $isdir = $n =~ s"\/+\z"";
                    my $abs = $dir . $n;
                    my $eabs = escape($abs);
    
  5. or download this
                    if ($n =~ m"[\/\0]") {
                        wrlog "skipping that href for illegal characters i
    +n name " . $eabs;
    ...
        $DATE->new_date("now")->printf("%O %Z") . ".";
    
    __END__
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://980595]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-18 18:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found