5.3.1 autoindex

The aspen.handlers.autoindex module defines one function:

wsgi( environ, start_response)
This handler displays an HTML listing of the files in the directory at environ['PATH_TRANSLATED']. If it is associated with a non-directory, it will raise AssertionError. The listing will not include the magic directory, nor files named README.aspen, nor hidden files (those whose name begins with '.').

The static handler can be configured to automatically call the autoindex handler for all directories. See below for details.

Aspen is copyright © 2006-2007 by Chad Whitacre and contributors, and is offered under the MIT license.