#!/usr/bin/env python # encoding: utf-8 # # Copyright (c) 2008 Doug Hellmann All rights reserved. # """ """ __version__ = "$Id$" #end_pymotw_header import dircache from pprint import pprint import os path = '../..' contents = dircache.listdir(path) annotated = contents[:] dircache.annotate(path, annotated) fmt = '%25s\t%25s' print fmt % ('ORIGINAL', 'ANNOTATED') print fmt % (('-' * 25,)*2) for o, a in zip(contents, annotated): print fmt % (o, a)