size: printing size of style master
authorFredrik Unger <fred@tree.se>
Tue, 22 Jan 2019 20:23:21 +0000 (21:23 +0100)
committerFredrik Unger <fred@tree.se>
Tue, 22 Jan 2019 20:23:21 +0000 (21:23 +0100)
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

index 106acb511e84bbe604d260046954a3204e927b54..b6d0fecf3630ce1c1fcb6310e6c9664d2c6a2f24 100644 (file)
@@ -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")