Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Is there a method in LWP that lets me get a listing of all files available in a URL directory?by saberworks (Curate) |
on Jul 05, 2006 at 19:06 UTC ( [id://559414]=note: print w/replies, xml ) | Need Help?? |
Even if the web server will give you a list of files, different servers display the files in different ways, and in fact, it's just returning an HTML page. So, even if these options were enabled on the servers you were interested in, you'd have to parse the HTML page to pull out the filenames. I also know for a fact that apache cuts off the file names if they are too long. You're better off logging in via FTP or providing a url on the server which returns the list of files in a manner you can parse.
In Section
Seekers of Perl Wisdom
|
|