Merge branch 'hotfix/directory-exists'

This commit is contained in:
Björn Fromme
2019-09-12 09:46:18 +02:00
2 changed files with 3 additions and 2 deletions
@@ -91,8 +91,8 @@ class ExportCommandController extends Command
'%s/fileadmin/reseller', '%s/fileadmin/reseller',
\TYPO3\CMS\Core\Core\Environment::getPublicPath() \TYPO3\CMS\Core\Core\Environment::getPublicPath()
); );
if (!mkdir($destinationFolder, 0755) && !is_dir($destinationFolder)) { if (!file_exists($destinationFolder)) {
throw new \RuntimeException(sprintf('Directory "%s" was not created', $destinationFolder)); mkdir($destinationFolder, 0755);
} }
foreach ($resellers as $reseller) { foreach ($resellers as $reseller) {
/** @var Reseller $reseller */ /** @var Reseller $reseller */
@@ -3,5 +3,6 @@
return [ return [
'ep:export' => [ 'ep:export' => [
'class' => \EP\EpProducts\Command\ExportCommandController::class, 'class' => \EP\EpProducts\Command\ExportCommandController::class,
'scheduleable' => false,
], ],
]; ];