Gaufrette\Util\Size::fromFile PHP Method

fromFile() public static method

Returns the size in bytes from the given file.
public static fromFile ( string $filename ) : string
$filename string
return string
    public static function fromFile($filename)
    {
        return filesize($filename);
    }

Usage Example

Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function size($key)
 {
     return Util\Size::fromFile($this->computePath($key));
 }