Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

option for enabling directory listing #10

Open
shiffman opened this issue Nov 24, 2014 · 1 comment
Open

option for enabling directory listing #10

shiffman opened this issue Nov 24, 2014 · 1 comment

Comments

@shiffman
Copy link
Contributor

While I recognize that in most "real world" cases this is a bad idea, for teaching I would love an option to enable automatic listing of directories/files when serving a directory. This is helpful if I have a whole bunch of examples that I just want to click around through and show without having to build an index page and is also useful for just demonstrating how the directory structure is shown.

directoryList(true);?
enableDirectoryList();?
listDirectory(true);?

@vanevery
Copy link
Collaborator

vanevery commented Dec 3, 2014

I think that should be an optional argument to the serveFiles(directory) method:

serveFiles(directory, [enableDirectoryList]) with a default to false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants