Re: Computing folder size - do you have something cleaner th



Hi Thibaut,

Don't know about more readable faster, but there is a built-in 'find'
library which you might want to try, something like:

require 'find'
...
def sizer(dirname)
size=0
Find.find(dirname) { |f| size=+File.size(f); }
size
end


Cheers

John
--
Posted via http://www.ruby-forum.com/.

.