Remote file listing?

Miscellaneous Forums/General Discussion/Remote file listing?

Hi guys, I'm writing an updater to get newer files from the server and download them. I'm not a html/php/cgi kinda guy so don't know much about this sort of thing.

I need to either generate or retreive a list of files currently in a remote directory.

For example, I'd have a look at: www.google.com/example/ and want a list of all the files in the /example directory. Is there any neat way of doing this without having to resort to using php or things I don't know about. If not then could someone point me in the right direction to learn about how I'd do such a thing.

Thanks in advance.
Matt

Save yourself some effort perhaps?
http://ghostpatch.bansheestudios.com
http://www.aliencodec.com/products/alienpatch/index.php

Getting a directory listing on a server is very much down to whether your server software is configured to send a file listing if there is no index.htm/php/asp/etc. in the folder.

When a web server sends a directory listing it creates a web page that lists the file, so you'll need to pass the web page and construct the directory data from the html file.

Getting accurate file information is dependant upon what information your web server software includes in the directory listing.

Hm, apprently my server doesn't give a list of files when I access a page. It's just a 403, forbidden. I'm looking into php now to see if I can make something of it.

I had a look at your ghostpatch, looks interesting but it's not exactly right for what I need. I'm not so much patching software, more downloading new content if it's available. Still, I'll keep on. Thanks Becks

A patching tool sounds right for the task. New and updated files. The AlienCodec software looks more professional than mine, and is priced accordingly. Mine can be fiddly to learn how to use though - anyway both will download new content aswell as replace existing files, and ghostpatch is free (unless you want file compression & the source code which I charge for).

What neither tool does to my knowledge is selective content installation.