Gaufrette\Util\Size::fromFile PHP Метод

fromFile() публичный статический Метод

Returns the size in bytes from the given file.
public static fromFile ( string $filename ) : string
$filename string
Результат string
    public static function fromFile($filename)
    {
        return filesize($filename);
    }

Usage Example

Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function size($key)
 {
     return Util\Size::fromFile($this->computePath($key));
 }