Esempio n. 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.");
     }
 }
Esempio n. 2
0
 public function exist()
 {
     return File::exists($this->getPath());
 }