Commit b1b6bc99 authored by Georg Ringer's avatar Georg Ringer Committed by Andreas Fernandez
Browse files

[BUGFIX] Create directory structure for temporary files

Instead of using `GeneralUtility::mkdir` the method
`GeneralUtility::mkdir_deep` should be used to avoid errors
if the parent directory does not yet exist.

Resolves: #96029
Releases: master, 11.5
Change-Id: Ic5005df117ddedd8fcae5b9c41c092f8328c8a57
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72236

Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Oliver Klee's avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Stefan Bürk's avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
parent 0305b29b
......@@ -1183,7 +1183,7 @@ abstract class ImportExport
random_int(1, PHP_INT_MAX)
);
} while (is_dir($temporaryFolderName));
GeneralUtility::mkdir($temporaryFolderName);
GeneralUtility::mkdir_deep($temporaryFolderName);
return $temporaryFolderName;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment