not entirely sur what u want i suppose the file size of ur dir ..
PHP Code:
foreach x [glob -nocomplain -type f -dir $path *] {
if {[info exists i]} {
set i [expr [file size $x]+$i]
} else {
set i [file size $x]
}
}
return $i
for main dir rerun it for every dir .. to do it restructive ..