FtpRename

The FtpRename method renames an existing file on the FTP server. On Unix FTP server this command can also move a file from one subdirectory to another with either a new or its old name.

Syntax:

>>-- myftpobj~FtpRename(oldfile, newfile)--------------------------------><

Arguments:

oldfile

The name and optional path of the file to be renamed.

newfile

The new name and optional path of the file.

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.