|
@@ 2154-2158 (lines=5) @@
|
| 2151 |
|
protected function cacheDir($path) { |
| 2152 |
|
$this->dirsCache[$path] = array(); |
| 2153 |
|
|
| 2154 |
|
foreach ($this->_scandir($path) as $p) { |
| 2155 |
|
if (($stat = $this->stat($p)) && empty($stat['hidden'])) { |
| 2156 |
|
$this->dirsCache[$path][] = $p; |
| 2157 |
|
} |
| 2158 |
|
} |
| 2159 |
|
} |
| 2160 |
|
|
| 2161 |
|
/** |
|
@@ 2334-2338 (lines=5) @@
|
| 2331 |
|
|
| 2332 |
|
!isset($this->dirsCache[$path]) && $this->cacheDir($path); |
| 2333 |
|
|
| 2334 |
|
foreach ($this->dirsCache[$path] as $p) { |
| 2335 |
|
if (($stat = $this->stat($p)) && empty($stat['hidden'])) { |
| 2336 |
|
$files[] = $stat; |
| 2337 |
|
} |
| 2338 |
|
} |
| 2339 |
|
|
| 2340 |
|
return $files; |
| 2341 |
|
} |