I have been playing with Twisted 12.2.0, and encountered this minor infelicity:<br><br>1) Files not at the root of the web server work as expected:<br><br>a) putChild(&quot;foo&quot;, File(&quot;some-directory&quot;)) works as expected - URL is <a href="http://example.com/foo/">http://example.com/foo/</a><br>
<br>b) Navigating to the directory &quot;bar&quot; within &quot;foo&quot; gives a URL of <a href="http://example.com/foo/bar/">http://example.com/foo/bar/</a> as expected.<br><br><br>2) Files at the root of the web server wind up with an extra &quot;/&quot; in the URL:<br>
<br>a)  putChild(&quot;&quot;, File(&quot;some-directory&quot;)) yields a URL of <a href="http://example.com//">http://example.com//</a>   &lt;-- note double slash<br><br>b) navigating to the same directory &quot;bar&quot; gives: <a href="http://example.com//bar">http://example.com//bar</a>   &lt;-- double-slash again...<br>
<br>Conclusion:<br><br>I think it would make sense to special the case of the root directory and not output a double &quot;//&quot; in the URL.<br>