in src/Utils/Project.php [56:73]
protected function validateProjectDir($dir)
{
if ($this->isRelativePath($dir)) {
$dir = getcwd() . DIRECTORY_SEPARATOR . $dir;
}
if (is_file($dir)) {
$this->errors[] = 'File exists: ' . $dir;
return;
}
if (is_dir($dir)) {
$this->info[] = 'Re-using a directory ' . $dir . '.';
} elseif (!@mkdir($dir, 0750, true)) {
$this->errors[] = 'Can not create a directory: ' . $dir;
} else {
$this->info[] = 'A directory ' . $dir . ' was created.';
}
return realpath($dir);
}