RenameFile Method
Change the name of RemoteFile to NewName .
Syntax
[VB.NET] Public Sub RenameFile(ByVal NewName As String)
[C#] public void RenameFile(string newName);
Remarks
This property is used to change the name of a remote file, specified by RemoteFile to NewName. RemoteFile and NewName are either absolute paths on the server, or a path relative to RemotePath. If there is no FTP session in place, one is automatically created by first calling the Logon method.
NOTE: This method has a corresponding asynchronous version (RenameFileAsync) for use in the Xamarin environment.