allowDirectoryListing property
Whether to allow listing files in a directories.
When true the response to a request for a directory will be an HTML document with a table of links to all files within the directory, along with their size and last modified time. The default behavior can be overridden by setting a directoryHandler.
Implementation
bool allowDirectoryListing = false;