Directory Listing for Static Files #17
Labels
No labels
accessibility
backport to lts
bug
code
critical
cygwin
documentation
duplicate
error reporting
external
feature
feedback
good first issue
help wanted
infrastructure
invalid
investigate
language spec
logs
lti
lts only
mac
maybe
qtype:bigbox
qtype:checkoff
qtype:expression
qtype:fileupload
qtype:multiexpression
qtype:multiplechoice
qtype:number
qtype:pythoncode
qtype:pythonic
qtype:pythonliteral
qtype:richtext
qtype:smallbox
question
question types
sandbox
security
syntax highlighting
ui/ux
wontfix
wsl
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
catsoop/catsoop#17
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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).I think the right entry point for this change is the
mainfunction indispatch.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.pyfiles), 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 subdirectories.