示例#1
0
 private static function checkPaths($pathToFileDirectory, $pathToFile)
 {
     FileHelper::ensureIsReadable($pathToFile);
     FileHelper::ensureIsDirectory($pathToFileDirectory);
     FileHelper::ensureIsWritable($pathToFileDirectory);
 }
示例#2
0
文件: Directory.php 项目: apolev/fias
 public function __construct($path)
 {
     FileHelper::ensureIsReadable($path);
     FileHelper::ensureIsDirectory($path);
     $this->directoryPath = $path;
 }