示例#1
0
 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
 public function exist()
 {
     return File::exists($this->getPath());
 }