With Express.js is there a way to display a file/dir listing like apache does when you access the URL of a directory which doesn\'t have a index file - so it displays a list
The following code will serve both directory and files
var serveIndex = require('serve-index'); app.use('/p', serveIndex(path.join(__dirname, 'public'))); app.use('/p', express.static(path.join(__dirname, 'public')));