protected function _scandir($path) { $files = array(); foreach (ftp_rawlist($this->connect, $path) as $str) { if ($stat = $this->parseRaw($str, $path, true)) { $files[] = $this->_joinPath($path, $stat['name']); } } return $files; }