![](https://secure.gravatar.com/avatar/48836c933f3b21a80e60dc9d496b3461.jpg?s=120&d=mm&r=g)
3 Feb
2023
3 Feb
'23
10:39 a.m.
Hello I want to generate and serve a custom directory listing(like serving a single file instead of the whole directory). So, I looked at twisted.web.static.File.directoryListing(). But, I could not find any usage examples. So, how is it used? Specifically, I want to provide an array of file paths to generate the directory listing, so that I can pass file paths of different files which are not in the same directory and still render a directory listing. I know this can be done by directoryListing, but I cannot find any examples on how to overwrite it properly or how to pass it properly to twisted.web.server.Site() Sincerely proneon267