public static function getSize($filename) {
        if (false === file_exists($filename)) {
            throw new FileNotFoundException($filename);
        }
        clearstatcache();
        return filesize($filename);
    }
public static function getSize($filename) {
        if (false === file_exists($filename)) {
            throw new FileNotFoundException($filename);
        }
        clearstatcache();
        return filesize($filename);
    }
public static function getSize ( $ filename ) { if ( false === file_exists ( $ filename ) ) { throw new FileNotFoundException ( $ filename ) ; } clearstatcache ( ) ; return filesize ( $ filename ) ; }
Get a file size.

@param string $filename The filename.
@return int Returns the file size.
@throws FileNotFoundException Throws a File not found exception if the file does not exists.
Get a file size .