public function _dirCreate($dir, $mode = 0755)
{
/** @noinspection NotOptimalIfConditionsInspection */
if (!is_dir($dir) && !@mkdir($dir, $mode, true) && !is_dir($dir)) {
throw new FileException('create `:dir` directory failed: :last_error_message', ['dir' => $dir]);
}
}