Code:
alias folder { 
  if (!$isdir($1-)) { return }
  if ($prop == size) { 
    var %size 
    noop $findfile($1-,*,0,inc %size $file($1-).size)
    return %size
  }
  return $file($1-) [ $+ [ $iif($prop,. $+ $v1) ] ]
}


Edit: don't use that on a big folder :p Took 5 minutes to calculate the size of my Windows directory!

Last edited by hixxy; 14/08/14 09:15 PM.