protected outputPath ( ) : string | ||
return | string |
protected function outputPath()
{
$destination = $this->ask('Where do you want to save the file? (Press enter for the current directory)');
$output_path = !is_null($destination) ? $destination : generate_path($this->config('source'));
if (!file_exists($output_path)) {
mkdir($output_path, 0744, true);
}
return $output_path;
}