Пример #1
0
 private static function checkPaths($pathToFileDirectory, $pathToFile)
 {
     FileHelper::ensureIsReadable($pathToFile);
     FileHelper::ensureIsDirectory($pathToFileDirectory);
     FileHelper::ensureIsWritable($pathToFileDirectory);
 }
Пример #2
0
 public function __construct($path)
 {
     FileHelper::ensureIsReadable($path);
     FileHelper::ensureIsDirectory($path);
     $this->directoryPath = $path;
 }