[Zope] Size of a Folder

Antwan Reijnen twanus@xs4all.nl
Fri, 01 Feb 2002 21:21:17 +0100


AARGH!!! Of course &-(


At 16:53 1-2-02 +0000, you wrote:
>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
>