diff --git a/servefile b/servefile index b6649cb..864dfcc 100755 --- a/servefile +++ b/servefile @@ -329,35 +329,41 @@ class DirListingHandler(FileBaseHandler): def sendDirectoryListing(self, path, head): """ Generate a directorylisting for path and send it """ - header = """ + header = """ + Index of %(path)s -

Index of %(path)s

-
- - +

Index of %(path)s

+
+
NameLast ModifiedSizeType
+ + + + + + + + + """ % {'path': posixpath.normpath(urllib.unquote(self.path))} - footer = """
NameLast ModifiedSizeType
-
servefile %(version)s
+ footer = """ + """ % {'version': __version__} content = [] @@ -385,10 +391,10 @@ class DirListingHandler(FileBaseHandler): fileType = "Directory" content.append(""" - %s - %s - %s - %s + %s + %s + %s + %s """ % (urllib.quote(item), item, lastModified, fileSize, fileType))