I am serving a local directory with Twisted http server as:
from twisted.web.server import Site
from twisted.web.static import File
from twisted.internet import reactor, endpoints
resource = File('./')
factory = Site(resource)
reactor.listenTCP(8888,factory)
reactor.run()
The server serves the specified directory properly. But, when there is any index file (index, index.html) in a directory, then the server displays that index file, instead of serving the local directory. So, how do I tell Twisted server to ignore the index files and continue to serve the local directory?