public static function size(string $path): float
	{
		if (is_file($path)) {
			return filesize($path);
		} else {
			$size = 0;
			foreach (glob(rtrim($path, '/') . '/*', GLOB_NOSORT) as $each) {
				$size += self::size($each);
			}
			return $size;
		}
	}
public static function size(string $path): float
	{
		if (is_file($path)) {
			return filesize($path);
		} else {
			$size = 0;
			foreach (glob(rtrim($path, '/') . '/*', GLOB_NOSORT) as $each) {
				$size += self::size($each);
			}
			return $size;
		}
	}
public static function size ( string $ path ) : float { if ( is_file ( $ path ) ) { return filesize ( $ path ) ; } else { $ size = 0 ; foreach ( glob ( rtrim ( $ path , '/' ) . '/*' , GLOB_NOSORT ) as $ each ) { $ size += self :: size ( $ each ) ; } return $ size ; } }
Vrati velikost souboru nebo slozky
@param string $path
@return float
Vrati velikost souboru nebo slozky