[BUGFIX] Do not throw exception for inaccessible folders 28/50128/2
authorSascha Egerer <sascha@sascha-egerer.de>
Sun, 4 Sep 2016 08:48:13 +0000 (10:48 +0200)
committerJan Helke <typo3@helke.de>
Sat, 8 Oct 2016 14:59:47 +0000 (16:59 +0200)
commit4e62de806649b9fa7a2953b30e090ab843ce6bb2
tree46724e3f0e843dcedc485bbeba0e611bf1d88585
parent9a75f0d3a3c69228b7c3cd37f759207b9f598d8e
[BUGFIX] Do not throw exception for inaccessible folders

In the LocalDriver the PHP RecursiveIteratorIterator implementation is
used to recursively iterate over a directory.
If there is a resource child with limited access an exception is thrown
during the initialization of the iterator.
That means you are even not able to iterate over the other folders.

This patch adds a flag that prevents the iterator to throw the exception.

Resolves: #71328
Releases: master, 7.6
Change-Id: I3373f70bbcd5cdb38e5f8998a1e4c0466f6d5260
Reviewed-on: https://review.typo3.org/50128
Reviewed-by: Jan Helke <typo3@helke.de>
Tested-by: Jan Helke <typo3@helke.de>
typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php