[BUGFIX] FAL Indexer follow symlinks now 70/36470/2
authorRoman Schuermann <roman.schuermann@wmdb.de>
Fri, 30 Jan 2015 14:14:37 +0000 (15:14 +0100)
committerHelmut Hummel <helmut.hummel@typo3.org>
Fri, 30 Jan 2015 19:09:44 +0000 (20:09 +0100)
Currently the indexing scheduler task from FAL ignores symlinks and all files behind symlinks are not indexed.

Resolves: #60511
Releases: master
Change-Id: If4eb503e96eccebaf39a9f3ba48ffc469e038f4b
Reviewed-on: http://review.typo3.org/36470
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php

index aa8e08d..89270db 100644 (file)
@@ -467,7 +467,7 @@ class LocalDriver extends AbstractHierarchicalFilesystemDriver {
         */
        protected function retrieveFileAndFoldersInPath($path, $recursive = FALSE, $includeFiles = TRUE, $includeDirs = TRUE) {
                $pathLength = strlen($this->getAbsoluteBasePath());
-               $iteratorMode = \FilesystemIterator::UNIX_PATHS | \FilesystemIterator::SKIP_DOTS | \FilesystemIterator::CURRENT_AS_FILEINFO;
+               $iteratorMode = \FilesystemIterator::UNIX_PATHS | \FilesystemIterator::SKIP_DOTS | \FilesystemIterator::CURRENT_AS_FILEINFO | \FilesystemIterator::FOLLOW_SYMLINKS;
                if ($recursive) {
                        $iterator = new \RecursiveIteratorIterator(
                                new \RecursiveDirectoryIterator($path, $iteratorMode),