| @@ 333-341 (lines=9) @@ | ||
| 330 | protected function cacheDir($path) { |
|
| 331 | $this->dirsCache[$path] = array(); |
|
| 332 | ||
| 333 | if (preg_match('/\'|\"/', $path)) { |
|
| 334 | foreach (ftp_nlist($this->connect, $path) as $p) { |
|
| 335 | if (($stat = $this->_stat($p)) &&empty($stat['hidden'])) { |
|
| 336 | // $files[] = $stat; |
|
| 337 | $this->dirsCache[$path][] = $p; |
|
| 338 | } |
|
| 339 | } |
|
| 340 | return; |
|
| 341 | } |
|
| 342 | foreach (ftp_rawlist($this->connect, $path) as $raw) { |
|
| 343 | if (($stat = $this->parseRaw($raw))) { |
|
| 344 | $p = $path.'/'.$stat['name']; |
|
| @@ 80-88 (lines=9) @@ | ||
| 77 | protected function cacheDir($path) { |
|
| 78 | $this->dirsCache[$path] = array(); |
|
| 79 | ||
| 80 | if (preg_match('/\'|\"/', $path)) { |
|
| 81 | foreach (ftp_nlist($this->connect, $path) as $p) { |
|
| 82 | if (($stat = $this->_stat($p)) &&empty($stat['hidden'])) { |
|
| 83 | // $files[] = $stat; |
|
| 84 | $this->dirsCache[$path][] = $p; |
|
| 85 | } |
|
| 86 | } |
|
| 87 | return; |
|
| 88 | } |
|
| 89 | foreach (ftp_rawlist($this->connect, $path) as $raw) { |
|
| 90 | if (($stat = $this->parseRaw($raw))) { |
|
| 91 | $p = $path.DIRECTORY_SEPARATOR.$stat['name']; |
|