예제 #1
0
파일: Image.php 프로젝트: kingsj/core
 /**
  * Check if file exists
  *
  * @param string  $path      Path to check OPTIONAL
  * @param boolean $forceFile Flag OPTIONAL
  *
  * @return boolean
  */
 public function isFileExists($path = null, $forceFile = false)
 {
     if (self::STORAGE_S3 == $this->getStorageType() && !$forceFile) {
         $exists = $this->getS3() ? $this->getS3()->isExists($this->generateS3Path($path)) : false;
     } else {
         $exists = parent::isFileExists($path, $forceFile);
     }
     return $exists;
 }