procedure Rename(const OldPath, NewPath: string);
Call the Rename method to rename the existing file specified in the OldPath parameter to the new NewPath name for the file system on the FTP server.
OldPath is used as an argument when sending the FTP 'RNFR' command.
NewPath is used as an argument when sending the FTP 'RNTO' command.
The response code received during execution of this command request is contained in the ReplyCode property.