/** * Upload a local file to the current directory * * @param string $localFilepath The full path and filename to upload * @param int $mode [optional] The transfer mode * @param string $remoteFilename [optional] Filename to save to on the server * @return Zend_Ftp_File */ public function put($localFilepath, $mode = null, $remoteFilename = null) { if ($remoteFilename == null) { $remoteFilename = basename($localFilepath); } $remoteFilepath = $this->_path . '/' . $remoteFilename; $file = new Zend_Ftp_File($remoteFilepath, $this->_ftp); $file->put($localFilepath, $mode); return $file; }
public function __construct($path, $ftp, $extraData, $parentDir) { parent::__construct($path, $ftp, $extraData); $this->parentDir = $parentDir; }