protected function getMD5Folders($strPath)
{
$arrFiles = array();
foreach (scan(TL_ROOT . '/' . $strPath) as $strFile) {
if (!is_dir(TL_ROOT . '/' . $strPath . '/' . $strFile)) {
continue;
}
$arrFiles[substr(md5(TL_ROOT . '/' . $strPath . '/' . $strFile), 0, 8)] = 1;
// Do not use array_merge() here (see #8105)
foreach ($this->getMD5Folders($strPath . '/' . $strFile) as $k => $v) {
$arrFiles[$k] = $v;
}
}
return $arrFiles;
}