Directory Browsing

Directory Browsing

The directory listing provider serves a simple web UI allowing users to browse directories and files read from a resource tree below the specified path.

var tree = ResourceTree.FromDirectory("/var/www/documents/");

Host.Create()
    .Handler(DirectoryListing.From(tree))
    .Run();

In this example, the listing view will be available at http://localhost:8080/.

Directory listing served by the GenHTTP server

Share