src/FS/Folder/Reader.php
public function getNestedSize( $pattern = NULL, $unit = NULL, $precision = NULL )
	{
		$size	= 0;
		foreach( $this->getNestedFileList( $pattern ) as $entry )
			$size	+= $entry->getSize();
		if( $unit )
			$size	= Alg_UnitFormater::formatNumber( $size, $unit, $precision );
		return $size;
	}
public function getNestedSize( $pattern = NULL, $unit = NULL, $precision = NULL )
	{
		$size	= 0;
		foreach( $this->getNestedFileList( $pattern ) as $entry )
			$size	+= $entry->getSize();
		if( $unit )
			$size	= Alg_UnitFormater::formatNumber( $size, $unit, $precision );
		return $size;
	}
public function getNestedSize ( $ pattern = NULL , $ unit = NULL , $ precision = NULL ) { $ size = 0 ; foreach ( $ this -> getNestedFileList ( $ pattern ) as $ entry ) $ size += $ entry -> getSize ( ) ; if ( $ unit ) $ size = Alg_UnitFormater :: formatNumber ( $ size , $ unit , $ precision ) ; return $ size ; }
Returns Size of all nested Files and Folders within current Folder.
@access		public
@param		string		$pattern		RegEx Pattern for Name Filter
@param		int			$unit			Unit (SIZE_BYTE|SIZE_KILOBYTE|SIZE_MEGABYTE|SIZE_GIGABYTE)
@param		int			$precision		Precision of rounded Size (only if unit is set)
@return		int
Returns Size of all nested Files and Folders within current Folder .