Renames or moves a file or directory on the server.
Namespace:
Rebex.Net
Assembly:
Rebex.FileTransfer (in Rebex.FileTransfer.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.