# HG changeset patch # User Jeff Hammel # Date 1288833450 25200 # Node ID d327dc7de14f490ca8cc6bcfe0de1ed14177bf91 # Parent ac693b8df32c231ab6b6d0380d7bed5b356f7b00 add size of file to metadata diff -r ac693b8df32c -r d327dc7de14f decoupage/web.py --- a/decoupage/web.py Wed Nov 03 08:18:50 2010 -0700 +++ b/decoupage/web.py Wed Nov 03 18:17:30 2010 -0700 @@ -220,6 +220,7 @@ modified = datetime.fromtimestamp(modified) files.append({'path' : '%s/%s' % (path.rstrip('/'), i), 'name': i, + 'size': os.path.getsize(filepath), 'modified': modified, 'description': conf.get(i.lower(), None), 'type': filetype})