How do you get Restify to serve directory listings? It seems to be possible to serve the contents of a directory, but not actually list them.
Asked
Active
Viewed 58 times
1 Answers
0
Use Nodes fs
library, namely fs.readdir
fs.readdir(path, function(err, items) {
console. log(items);
}
Use that inside a resource endpoint to return the listing.

clay
- 5,917
- 2
- 23
- 21