Like the RouteDirectives the FileAndResourceDirectivesFileAndResourceDirectives are somewhat special in akka-http’s routing DSL. Most other directives wrap an inner route and are therefore used as inner nodes of the route tree. These directives, instead, are indeed instance of RouteRouteRoute, i.e. leaves of the route tree that handle a request themselves without passing it on to an inner route.
Found an error in this documentation? The source code for this page can be found here. Please feel free to edit and contribute a pull request.