kirby/vendor/getkirby/toolkit/lib/folder.php
/**
   * Returns the entire size of the directory and all its contents
   * 
   * @return int
   */
Returns the entire size of the directory and all its contents

@return int
Returns the entire size of the directory and all its contents @return int
public function size() {
    $size  = 0;
    $items = $this->content(array('.', '..'));
    foreach($items AS $item) $size += $item->size();
    return $size;
  }
public function size ( ) { $ size = 0 ; $ items = $ this -> content ( array ( '.' , '..' ) ) ; foreach ( $ items AS $ item ) $ size += $ item -> size ( ) ; return $ size ; }
Returns the entire size of the directory and all its contents
Returns the entire size of the directory and all its contents