Console::writeError("please make sure ".$configOption." is set in <path>".Console::getHumanReadablePath($configPath)."</path> by adding '".$configOption."=some/path'. sorry, stopping pattern lab... :(");
} elseif (!is_dir($path)) {
Console::writeWarning("i can't seem to find the directory <path>".Console::getHumanReadablePath($path)."</path>...");
self::makeDir($path);
Console::writeWarning("i created <path>".Console::getHumanReadablePath($path)."</path> just in case. you can edit this in <path>".Console::getHumanReadablePath($configPath)."</path> by editing ".$configOption."...");
}
}
/**
* Make a directory
* @param {String} directory to be made
*/
publicstaticfunctionmakeDir($dir) {
$fs = newFilesystem();
try {
$fs->mkdir($dir);
} catch (IOExceptionInterface$e) {
Console::writeError("an error occurred while creating your directory at <path>".$e->getPath()."</path>...");
}
unset($fs);
}
/**
* Copies a file from the given source path to the given public path.