[Twisted-web] Re: How to disable directory listing

dq dq at altern.org
Tue Aug 1 11:22:17 CDT 2006

Alex Greif <alex.greif <at> gmail.com> writes:

> if the url points to a directory resource, then a list of the folder
> contents is displayed.
> How can this behaviour be disabled in web2?

up to now I've been using this:

class FileNoDir(static.File):
    def directoryListing(self):
        return None

Kind regards,

More information about the Twisted-web mailing list