[BUGFIX] FAL does not copy subfolders cleanly 96/22596/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Fri, 26 Jul 2013 15:43:19 +0000 (17:43 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 26 Jul 2013 17:27:13 +0000 (19:27 +0200)
commitb0f8bb0d15106b6f3ee2c5b3b033cbc3e1b635e2
tree5eeda44395625b5cb4b09d6eb268792be1cf9832
parentf0a0b5e70912182fe07343f11a33905e5266f4e9
[BUGFIX] FAL does not copy subfolders cleanly

If full structures with sub folders are copied around in FAL
local driver, sub folders are not correctly created in the
target directory.

This is detected in unit tests after recent vfsStream updates in
ext:phpunit.

The patch adds a flag to the Iterator code to also include
directories to fix the issue.

Additionally, the existing two unit tests also tested multiple other
methods of the local driver and are functional tests. The patch moves
those two tests to the functional section and adds three simple unit
tests with correct mocking instead.

Change-Id: I30d3c8bd5c6538b3fe23405d97bcddff6c1ff405
Releases: 6.2, 6.1, 6.0
Resolves: #50472
Reviewed-on: https://review.typo3.org/22596
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php
typo3/sysext/core/Tests/Functional/Resource/Driver/LocalDriverTest.php [new file with mode: 0644]
typo3/sysext/core/Tests/Unit/Resource/Driver/LocalDriverTest.php