Chapter 3. RxFtp Method Reference

Table of Contents
FtpAppend
FtpChDir
FtpDelete
FtpDir
FtpGet
FtpGetMode
FtpGetType
FtpLogoff
FtpLs
FtpMkDir
FtpPut
FtpPutUnique
FtpPwd
FtpQuote
FtpRename
FtpRmDir
FtpSetMode
FtpSetType
FtpSetUser
FtpSite
FtpSys
FtpTrace
FtpTraceLog
FtpTraceLogoff
FtpVersion

The following sections describe how the individual methods available in RxFtp are invoked from the Rexx programming environment:

FtpAppend

The FtpAppend method appends a file to another file on the FTP server. If the target file on the server does not exist it is created.

Syntax:

>>--myftpobj~FtpAppend(--localfilename, remotefilename--+----------+--)--><
                                                        +--, mode--+

Arguments:

localfilename

The filename and optional path where the source file is stored.

remotefilename

The filename and optional path of the target file for the append operation on the FTP server. If the path is not given the current directory on the ftp server will be used. If the file does not exist it will be created.

mode

The file transfer mode, either 'ASCII' or 'BINARY'. If the argument is not given the current mode will be used.

Return Values:

A value of 0 indicates successful execution of the method. The value -1 indicates an error. You can get the specific error code by inspection of the method FtpErrno. Possible values:

FTPCOMMAND

The internal FTP command or the arguments to the method are in error.