Code:
alias dirsize {
  var %t = 0
  .echo -q $findfile($$1-,*,0,var %t = %t + $file($1-).size)
  return %t
}

Worked for me on a 2gb folder.