private function allowedValuesForDestination($destination)
{
if (!$destination) {
throw new ConfigurationException("Destination is not set. Use '-d <dir>' or config to set it");
} elseif (!is_dir($destination)) {
mkdir($destination, 0755, true);
}
if (!is_writable($destination)) {
throw new ConfigurationException("Destination '{$destination}' is not writable");
}
return true;
}