diff --git a/public/typo3conf/ext/ep_products/Classes/Command/ExportCommandController.php b/public/typo3conf/ext/ep_products/Classes/Command/ExportCommandController.php index 58e08a37..afa9a2b4 100644 --- a/public/typo3conf/ext/ep_products/Classes/Command/ExportCommandController.php +++ b/public/typo3conf/ext/ep_products/Classes/Command/ExportCommandController.php @@ -91,8 +91,8 @@ class ExportCommandController extends Command '%s/fileadmin/reseller', \TYPO3\CMS\Core\Core\Environment::getPublicPath() ); - if (!mkdir($destinationFolder, 0755) && !is_dir($destinationFolder)) { - throw new \RuntimeException(sprintf('Directory "%s" was not created', $destinationFolder)); + if (!file_exists($destinationFolder)) { + mkdir($destinationFolder, 0755); } foreach ($resellers as $reseller) { /** @var Reseller $reseller */