%include file="/pageheader.html"/> <% from kaithem.src import unitsofmeasure,util,directories import os,urllib def size(f): try: return unitsofmeasure.si_format_number(os.path.getsize(os.path.join(dir,f)),1) except Exception as e: return str(e) %>
${dir|h}
Unpacking puts all zip contents into the current dir, without creating a new subdir "foo" in the zip becomes "DIR/foo". If a destination file exists, it is overwritten.
Path | Size | Action |
---|---|---|
${i+("/" if os.path.isdir(os.path.join(dir,i)) else '')|h} | ${size(i)}B | \