Exemplo n.º 1
0
 private static function checkPaths($pathToFileDirectory, $pathToFile)
 {
     FileHelper::ensureIsReadable($pathToFile);
     FileHelper::ensureIsDirectory($pathToFileDirectory);
     FileHelper::ensureIsWritable($pathToFileDirectory);
 }
Exemplo n.º 2
0
 public function __construct($path)
 {
     FileHelper::ensureIsReadable($path);
     FileHelper::ensureIsDirectory($path);
     $this->directoryPath = $path;
 }