コード例 #1
0
ファイル: FilePager.php プロジェクト: nstdio/file-pager
 private function checkFile($fileName)
 {
     if (!File::exists($fileName)) {
         throw new InvalidArgumentException("No such file: {$fileName}.");
     }
     if (!File::isReadable($fileName)) {
         throw new InvalidArgumentException("No permission to read {$fileName} file.");
     }
 }
コード例 #2
0
ファイル: Cache.php プロジェクト: nstdio/file-pager
 public function exist()
 {
     return File::exists($this->getPath());
 }