Project

General

Profile

Bug #71328 ยป dir-iterator-ignore-unreadable.diff

Martin Terber, 2015-11-04 20:37

View differences:

typo3_src-6.2.15/typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php
if ($recursive) {
$iterator = new \RecursiveIteratorIterator(
new \RecursiveDirectoryIterator($path, $iteratorMode),
\RecursiveIteratorIterator::SELF_FIRST
\RecursiveIteratorIterator::SELF_FIRST,
\RecursiveIteratorIterator::CATCH_GET_CHILD
);
} else {
$iterator = new \RecursiveDirectoryIterator($path, $iteratorMode);
......
/** @var $iterator \RecursiveDirectoryIterator */
$iterator = new \RecursiveIteratorIterator(
new \RecursiveDirectoryIterator($sourceFolderPath),
\RecursiveIteratorIterator::SELF_FIRST
\RecursiveIteratorIterator::SELF_FIRST,
\RecursiveIteratorIterator::CATCH_GET_CHILD
);
// Rewind the iterator as this is important for some systems e.g. Windows
$iterator->rewind();
typo3_src-6.2.15/typo3/sysext/scheduler/Classes/Task/RecyclerGarbageCollectionTask.php
throw new \RuntimeException('Given directory "' . $directory . '" does not exist', 1301614535);
}
// Find all _recycler_ directories
$directoryContent = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($directory));
$directoryContent = new \RecursiveIteratorIterator(
new \RecursiveDirectoryIterator($directory),
\RecursiveIteratorIterator::LEAVES_ONLY,
\RecursiveIteratorIterator::CATCH_GET_CHILD
);
foreach ($directoryContent as $fileName => $file) {
// Skip directories and files without recycler directory in absolute path
$filePath = $file->getPath();
    (1-1/1)