protected function cacheDir($path) { $this->dirsCache[$path] = array(); foreach ($this->_scandir($path) as $p) { if (($stat = $this->stat($p)) && empty($stat['hidden'])) { $this->dirsCache[$path][] = $p; } } }