Commit d759733c authored by jim's avatar jim

Physical directory sizes can vary accross platforms.

Use the logical size instead.


git-svn-id: http://svn.zope.org/repos/main/zc.buildout/trunk@71424 62d5b8a3-27da-0310-9561-8e5933582275
parent cfd1a7ae
...@@ -953,7 +953,7 @@ mkdir recipe introduced earlier. ...@@ -953,7 +953,7 @@ mkdir recipe introduced earlier.
... import os ... import os
... def backup_directory(name, options): ... def backup_directory(name, options):
... path = options['path'] ... path = options['path']
... size = os.stat(path).st_size ... size = len(os.listdir(path))
... print "backing up directory %s of size %s" % (path, size) ... print "backing up directory %s of size %s" % (path, size)
... """) ... """)
...@@ -1024,7 +1024,7 @@ is run before the directory is deleted. ...@@ -1024,7 +1024,7 @@ is run before the directory is deleted.
buildout: Develop: /sample-buildout/recipes buildout: Develop: /sample-buildout/recipes
buildout: Uninstalling dir buildout: Uninstalling dir
buildout: Running uninstall recipe buildout: Running uninstall recipe
backing up directory /sample-buildout/my_directory of size 4096 backing up directory /sample-buildout/my_directory of size 0
buildout: Updating debug buildout: Updating debug
recipe recipes:debug recipe recipes:debug
<BLANKLINE> <BLANKLINE>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment