Bugs Everywhere Bug List

Bug: e9e/f27

ID : f271a815-dfa2-4900-8039-66ef9a238bcb
Short name : e9e/f27
Status : open
Severity : wishlist
Assigned :
Reporter : adam j hartz <hz@mit.edu>
Creator : adam j hartz <hz@mit.edu>
Created : Tue, 28 May 2019 12:40:20 +0000
Target : v2019.9
Summary : Directory Listing for Static Files

Comment: --------- Comment ---------
ID: 826c0c16-10d3-447b-b7f9-73b36c14dc38
Short name: e9e/f27/826
From: adam j hartz <hz@mit.edu>
Date: Tue, 28 May 2019 12:48:51 +0000

We should add a flag to enable directory listings within `__STATIC__`
directories (i.e., navigating to a directory should show a listing of the files
contained therein if a particular flag is set).

Comment: --------- Comment ---------
ID: 2e1f48f7-43ac-4dba-8545-094b381260d7
Short name: e9e/f27/2e1
From: adam j hartz <hz@mit.edu>
Date: Tue, 28 May 2019 12:52:38 +0000

I think the right entry point for this change is the `main` function in
`dispatch.py`.  Right now, things short circuit in the case of requesting a
static file.  I think we want to keep that short-circuiting in place but only
do that in the case where the URL actually represents a static _file_ on disk.
Then, farther down the function (after we've run the `preload.py` files), if
the resource being requested represents a static _directory_, we can check to
see if some option (yet to be defined) has been set, and, if it has, generate a
page to list the files in the directory.    We'll need to make sure this
properly handles not only the base `__STATIC__` directory, but also