public static createFolder ( string $folder ) | ||
$folder | string |
public static function createFolder($folder)
{
if (!is_dir($folder)) {
if (!mkdir($folder, 0777)) {
throw new Exception\RuntimeException("Não foi possivel criar o diretorio {$folder}. Verifique as permissões");
}
}
}