Commit e0697763 authored by Jim Fulton's avatar Jim Fulton

Physical directory sizes can vary accross platforms.

Use the logical size instead.
parent 331f2274
...@@ -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