#!/usr/bin/env python

import os, sys, time

if len(sys.argv) < 2:
    print "usage: %s directory..." % sys.argv[0]
    sys.exit(1)

def get_date(file_name):
    i = file_name.rfind('-')
    if i == -1:
        return ""
    t = int(file_name[i+1:])
    return time.ctime(t)

for dir in sys.argv[1:]:
    print dir
    for file_name in sorted(os.listdir(dir)):
        print "    %s - %s" % (file_name, get_date(file_name))

#!/usr/bin/env python

import os, sys, time

if len(sys.argv) < 2:
    print "usage: %s directory..." % sys.argv[0]
    sys.exit(1)

def get_date(file_name):
    i = file_name.rfind('-')
    if i == -1:
        return ""
    t = int(file_name[i+1:])
    return time.ctime(t)

for dir in sys.argv[1:]:
    print dir
    for file_name in sorted(os.listdir(dir)):
        print "    %s - %s" % (file_name, get_date(file_name))

#!/usr/bin/env python