From 07aa5faec2568531f2c136ca7984f89c5fd9c298 Mon Sep 17 00:00:00 2001 From: Fredrik Unger Date: Tue, 22 Jan 2019 21:23:21 +0100 Subject: [PATCH] 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. --- treecutter/sitemap.py | 1 + 1 file changed, 1 insertion(+) 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") -- 2.30.2