/** * Get the current Directory * * @return Zend_Ftp_Directory */ public function getCurrentDirectory() { if ($this->_currentDirectory === null) { $this->_connect(); $this->_currentDirectory = Zend_Ftp_Factory::getDirecotry($this->getSysType(), array($this->_currentPath, $this)); } return $this->_currentDirectory; }