Re: [mongrel2] How to list files in a directory
- From:
- Xavier Lange
- Date:
- 2011-10-29 @ 19:22
There is no directory listing mechanism in mongrel2. It simply handles
serving files, not listing them. You may have to write a simple handler to
list files.
On Sat, Oct 29, 2011 at 12:11 PM, trevor stanhope <tpstanhope@gmail.com>wrote:
> this is somewhat of a dumb question, and I'm pretty sure i saw you
> disapprove of it somewhere, but i was curious what is the best way to
> display a listing of the files in a directory. I've bound a directory to
> a standard url route, and have no troubles accessing the handlers or
> index.html, but i'd like to set a route to point to a directory with
> subdirectories of albums (for my own selfish reasons). I know this is a
> basic thing that can be done with laymans apache, but i was curious how
> this could be done with mongrel2.
>
> thanks for your time Zed.
>
>