Commit 5da883a9 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Include the mtime of files in the dir listings.

parent 3c1bde8b
......@@ -266,7 +266,9 @@ def handle_directory(environ, start_response, ph, real_dir):
res.write("</li>\n")
for w in sorted(wavs):
res.write("<li>")
res.write("<a href=\"%s.wav\">%s.wav</a>" % (
res.write(time.strftime("%Y-%m-%d %H:%M:%S",
time.localtime(wavs[w].st_mtime)))
res.write(" <a href=\"%s.wav\">%s.wav</a>" % (
quote(w), w))
res.write(" (" + sizeof_fmt(wavs[w].st_size) + ")")
if w in mp3s:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment