[BUGFIX] GeneralUtility::copyDirectory() should mkdir_deep() destination dir 61/55361/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Sun, 14 Jan 2018 17:10:38 +0000 (18:10 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 14 Jan 2018 18:56:59 +0000 (19:56 +0100)
commit52c714d2544b9b26f217d191ccb0316eb2d30d8c
tree1f9580e59ff86414f42fd147c34d2afeecdca91c
parent0ba14b9ca1e3722f1e75d63580a9b8ae36aa2eb5
[BUGFIX] GeneralUtility::copyDirectory() should mkdir_deep() destination dir

If path to the destination directory does not exist yet,
copyDirectory() does not copy anything. Use mkdir_deep() for directories.

As example, have directory 'typo3temp' and call copyDirectory()
with a destination 'typo3temp/foo/bar', where 'foo' does not
exist, yet. Without patch, this operation fails.

Change-Id: Id8eb5d6cd30c288ca073e98d35a3025c8489c182
Resolves: #83564
Releases: master, 8.7
Reviewed-on: https://review.typo3.org/55361
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Utility/GeneralUtility.php
typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php