supportsSize() 공개 메소드

Can this storage get file size info?
public supportsSize ( ) : mixed
리턴 mixed
예제 #1
0
파일: File.php 프로젝트: Webiny/Framework
 /**
  * Get file size in bytes
  *
  * @return int|null Number of bytes or null
  */
 public function getSize()
 {
     if ($this->size === null && $this->storage->supportsSize()) {
         $this->size = $this->storage->getSize($this->key);
     }
     return $this->size;
 }