How to properly overwrite directoryListing for generating custom directory listing
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
1293
Age (days ago)
1293
Last active (days ago)
0 comments
1 participants
participants (1)
-
Pro Neon