public static function rowCount(String $file = '/', Bool $recursive = true) : Int
    {
        $file = self::rpath($file);

        if( ! file_exists($file) )
        {
            throw new Exception\FileNotFoundException(NULL, $file);
        }

        if( is_file($file) )
        {
            return count( file($file) );
        }
        elseif( is_dir($file) )
        {
            $files = FileList::allFiles($file, $recursive);

            $rowCount = 0;

            foreach( $files as $f )
            {
                if( is_file($f) )
                {
                    $rowCount += count( file($f) );
                }
            }

            return $rowCount;
        }
        else
        {
            return false;
        }
    }
public static function rowCount(String $file = '/', Bool $recursive = true) : Int
    {
        $file = self::rpath($file);

        if( ! file_exists($file) )
        {
            throw new Exception\FileNotFoundException(NULL, $file);
        }

        if( is_file($file) )
        {
            return count( file($file) );
        }
        elseif( is_dir($file) )
        {
            $files = FileList::allFiles($file, $recursive);

            $rowCount = 0;

            foreach( $files as $f )
            {
                if( is_file($f) )
                {
                    $rowCount += count( file($f) );
                }
            }

            return $rowCount;
        }
        else
        {
            return false;
        }
    }
public static function rowCount ( String $ file = '/' , Bool $ recursive = true ) : Int { $ file = self :: rpath ( $ file ) ; if ( ! file_exists ( $ file ) ) { throw new Exception \ FileNotFoundException ( NULL , $ file ) ; } if ( is_file ( $ file ) ) { return count ( file ( $ file ) ) ; } elseif ( is_dir ( $ file ) ) { $ files = FileList :: allFiles ( $ file , $ recursive ) ; $ rowCount = 0 ; foreach ( $ files as $ f ) { if ( is_file ( $ f ) ) { $ rowCount += count ( file ( $ f ) ) ; } } return $ rowCount ; } else { return false ; } }
Gets number of file row

@return string $file      = '/'
@param bool    $recursive = true

@return int
Gets number of file row