[Zope] Size of a Folder

seb bacon seb@jamkit.com
01 Feb 2002 16:53:50 +0000


On Fri, 2002-02-01 at 16:50, Antwan Reijnen wrote:
> To achieve du-like behaviour, I guess it would be nice to recurse into sub-folders too :-) It should'nt be too hard either.

it did already :-P


> > > Is there a way to know the size of a ZODB Folder ?
> > > Something like "du somefolder" in UNIX ?


> >for item in folder.objectValues():
...
> >     size = size + item.folder_size(size=size)
                           
---------------------------^

seb