From: Fredrik Unger Date: Tue, 22 Jan 2019 20:23:21 +0000 (+0100) Subject: size: printing size of style X-Git-Url: https://source.tree.se/git?p=treecutter.git;a=commitdiff_plain;h=07aa5faec2568531f2c136ca7984f89c5fd9c298 size: printing size of style Adding the printout of the folder sizes of style and resources. This is to give a better indication of what is being sent to estimate the upload time. --- diff --git a/treecutter/sitemap.py b/treecutter/sitemap.py index 106acb5..b6d0fec 100644 --- a/treecutter/sitemap.py +++ b/treecutter/sitemap.py @@ -141,5 +141,6 @@ class Sitemap(): publish(self._tmptarget, self._output) for res in ["stylesheets","images","js","fonts","favicon.ico"]: if (os.path.exists(self._style+res)): + print "Size [ %7s ]" % (sizeof_fmt(get_folder_size(self._style+res))) publish(self._style+res, self._output) ssh_cmd(self._output,"chmod a+rx")