Renames or moves a file or directory on the server.
Namespace:
Rebex.Net
Assembly:
Rebex.Ftp (in Rebex.Ftp.dll)
Syntax
| Visual Basic |
|---|
Public Sub Rename ( _ fromPath As String, _ toPath As String _ ) |
| C# |
|---|
public void Rename( string fromPath, string toPath ) |
Parameters
- fromPath
- Type: System..::..String
The pathname of the remote file or directory to be renamed.
- toPath
- Type: System..::..String
The pathname to rename the file or directory to.
Implements
IFtp..::..Rename(String, String)
Remarks
Represents FTP RNFR/RNTO command pair.