http://www.perlmonks.org?node_id=604469


in reply to Traversing directories to get the "most-recent" or "second-to-most-recent" directory contents

Wouldn't it be easy if you just called a CGI script which returns the URIs of the desired files?

I used such a system to download log files a while ago. get_list.cgi would return a list of available log files, and get_log.cgi?file=... would get a particular file (since they weren't in a web-accessible directory).