in reply to How to find folder size

The way I've done it is for every file in each specified directory use the -s on the files and add them up. Here's a snippet of something similar I've done.

ie.
$size = 0; if (-f $var){ $size = -s $var; $dir_size =+ $size; }