diff options
author | Guido van Rossum <guido@python.org> | 2000-09-05 04:49:50 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-09-05 04:49:50 (GMT) |
commit | e2ab1451cf4f5fb4b3ce6cb2e1598fab4a2f9eed (patch) | |
tree | 4ae42008f3ae9b480550c4a542fe08a91af6916e /Lib/dos-8x3/simpleht.py | |
parent | 10912854a29185fe41eba93be6e87bdd75278acb (diff) | |
download | cpython-e2ab1451cf4f5fb4b3ce6cb2e1598fab4a2f9eed.zip cpython-e2ab1451cf4f5fb4b3ce6cb2e1598fab4a2f9eed.tar.gz cpython-e2ab1451cf4f5fb4b3ce6cb2e1598fab4a2f9eed.tar.bz2 |
The usual.
Diffstat (limited to 'Lib/dos-8x3/simpleht.py')
-rwxr-xr-x | Lib/dos-8x3/simpleht.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/dos-8x3/simpleht.py b/Lib/dos-8x3/simpleht.py index 8a77758..4cfedbc 100755 --- a/Lib/dos-8x3/simpleht.py +++ b/Lib/dos-8x3/simpleht.py @@ -6,7 +6,7 @@ and HEAD requests in a fairly straightforward manner. """ -__version__ = "0.4" +__version__ = "0.5" import os @@ -99,6 +99,7 @@ class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): return None list.sort(lambda a, b: cmp(a.lower(), b.lower())) f = StringIO() + f.write("<title>Directory listing for %s</title>\n" % self.path) f.write("<h2>Directory listing for %s</h2>\n" % self.path) f.write("<hr>\n<ul>\n") for name in list: @@ -107,7 +108,7 @@ class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): # Append / for directories or @ for symbolic links if os.path.isdir(fullname): displayname = name + "/" - linkname = name + os.sep + linkname = name + "/" if os.path.islink(fullname): displayname = name + "@" # Note: a link to a directory displays with @ and links with / |