/** * Process the data returned from a directory content listing. * (Overriden) * @param type $lines the lines that were returned from the directoryt file listing */ protected function processDirectoryData($lines) { $parser = Zend_Ftp_Factory::getParser($this->_ftp->getSysType()); foreach ($lines as $line) { $fileData = $parser->parseFileDirectoryListing($line); $id = intval(substr($fileData['name'], 2, 4), 10); if (isset($this->_dir->filesState[$id]) && $this->_dir->filesState[$id]['state'] == Zend_Ftp_Directory_Nsn::FILE_STATE_FULL) { $fileData['id'] = $id; $this->_data[] = $fileData; } } $this->_count = count($this->_data); }
/** * process the data returned from a directory content listing. * @param type $lines the lines that were returned from the directoryt file listing */ protected function processDirectoryData($lines) { $parser = Zend_Ftp_Factory::getParser($this->_ftp->getSysType()); foreach ($lines as $line) { $fileData = $parser->parseFileDirectoryListing($line); if ($fileData['type'] != 'l') { $this->_data[] = $fileData; } } $this->_count = count($this->_data); }