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));
 }