public function assertWritableDir($path)
{
if (!is_dir($path)) {
throw new BootException('The folder <code>' . htmlspecialchars($path, ENT_QUOTES) . "</code> doesn't exist. Make sure it is " . 'present and writable to the user that the web server is using.');
}
if (!is_writable($path)) {
throw new BootException('The folder <code>' . htmlspecialchars($path, ENT_QUOTES) . "</code> isn't writable. Make sure it is " . 'present and writable to the user that the web server is using.');
}
}