Index: t3lib/class.t3lib_div.php =================================================================== --- t3lib/class.t3lib_div.php (revision 1675) +++ t3lib/class.t3lib_div.php (working copy) @@ -2611,14 +2611,14 @@ * @param integer $recursivityLevels: The number of levels to dig down... * @return array An array with the found files/directories. */ - function getAllFilesAndFoldersInPath($fileArr,$path,$extList='',$regDirs=0,$recursivityLevels=99) { + function getAllFilesAndFoldersInPath($fileArr,$path,$extList='',$regDirs=0,$recursivityLevels=99,$excludeDirs='') { if ($regDirs) $fileArr[] = $path; $fileArr = array_merge($fileArr, t3lib_div::getFilesInDir($path,$extList,1,1)); $dirs = t3lib_div::get_dirs($path); if (is_array($dirs) && $recursivityLevels>0) { foreach ($dirs as $subdirs) { - if ((string)$subdirs!='') { + if ((string)$subdirs!='' && !t3lib_div::inList($excludeDirs,strtolower($subdirs)) ) { - $fileArr = t3lib_div::getAllFilesAndFoldersInPath($fileArr,$path.$subdirs.'/',$extList,$regDirs,$recursivityLevels-1); + $fileArr = t3lib_div::getAllFilesAndFoldersInPath($fileArr,$path.$subdirs.'/',$extList,$regDirs,$recursivityLevels-1,$excludeDirs); } } } Index: typo3/mod/tools/em/class.em_index.php =================================================================== --- typo3/mod/tools/em/class.em_index.php (revision 1675) +++ typo3/mod/tools/em/class.em_index.php (working copy) @@ -2266,7 +2266,7 @@ if ($extPath) { // Read files: $fileArr = array(); - $fileArr = t3lib_div::getAllFilesAndFoldersInPath($fileArr,$extPath); + $fileArr = t3lib_div::getAllFilesAndFoldersInPath($fileArr,$extPath,'',0,99,'.svn,.cvs'); // Start table: $lines = array(); @@ -3338,7 +3338,8 @@ * @see makeDetailedExtensionAnalysis() */ function getClassIndexLocallangFiles($absPath,$table_class_prefix,$extKey) { - $filesInside = t3lib_div::removePrefixPathFromList(t3lib_div::getAllFilesAndFoldersInPath(array(),$absPath,'php,inc'),$absPath); + $filesInside = t3lib_div::removePrefixPathFromList + (t3lib_div::getAllFilesAndFoldersInPath(array(),$absPath,'php,inc',0,99,'.svn,.cvs'),$absPath); $out = array(); foreach($filesInside as $fileName) { @@ -3883,7 +3884,7 @@ // Get files for extension: $fileArr = array(); - $fileArr = t3lib_div::getAllFilesAndFoldersInPath($fileArr,$extPath); + $fileArr = t3lib_div::getAllFilesAndFoldersInPath($fileArr,$extPath,'',0,99,'.svn,.cvs'); // Calculate the total size of those files: $totalSize = 0;