How to properly overwrite directoryListing for generating custom directory listing
![](https://secure.gravatar.com/avatar/48836c933f3b21a80e60dc9d496b3461.jpg?s=120&d=mm&r=g)
Feb. 3, 2023
9: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
738
Age (days ago)
738
Last active (days ago)
0 comments
1 participants
participants (1)
-
Pro Neon