From: "Simon Kröger" Date: 2005-09-06T05:51:16+09:00 Subject: Re: Help me clean up this method David Brady wrote: > Ara.T.Howard wrote: > >> just thought i'd point out that every solution posted thus far fails in a >> variety of ways when links are considered > > > If you have links, you also have du, which IMO is the Right Tool For > This Job: > > total = `du --max-depth=0|cut -f 1`.to_i sorry for stating the obvious, but: this isn't very portable. cheers Simon