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:
The name and optional path of the file to be renamed.
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:
The internal FTP command or the arguments to the method are in error.