protected function makeDirectory($dirPath)
{
$path = $this->destinationPath . DIRECTORY_SEPARATOR . $dirPath;
if (File::isDirectory($path)) {
throw new ApplicationException(Lang::get('rainlab.builder::lang.common.error_dir_exists', ['path' => $path]));
}
if (!File::makeDirectory($path, 0777, true, true)) {
throw new SystemException(Lang::get('rainlab.builder::lang.common.error_make_dir', ['name' => $path]));
}
}