[BUGFIX] FAL Indexer follow symlinks now
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Resource / Driver / LocalDriver.php
index ecc819f..85c739b 100644 (file)
@@ -469,7 +469,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),