Hi Octavian
I don't think that this is really as much an LWP issue as a web server issue. I can only speak for Apache but you can, at your option, say whether directory listings are allowed or not.
Does anyone know if it is possible to find out the name of all the files from a directory from a remote computer for downloading them using the LWP module?
If listings *are* allowed, you will be able to see what's in there by GETing the directory - unless the directory has a DirectoryIndex files set, like index.html. So, if listing is allowed and there is not DirectoryIndex file, Apache will return a page which is a set of links to all the files/subdirectories in the directory.
If listings *are not* allowed and there is no DirectoryIndex file, you will just get a "Directory Listing Not Allowed" page sent back at you.
If there is a DirectoryIndex file, you could always grab it with LWP, then use HTML::Parser or HTML::TokeParser to grab all the links and return only the ones within that directory. It won't give you everything of course, unless all files are linked.
Hope this helps.
Cheers
M
--
Matthew Smith | Business: http://www.kbc.net.au
IT Consultant | PGP Key: http://gpg.mss.cx
Kadina, South Australia | * Tivis Project * Community Connect *