Renames or moves a file or directory on the server.

Namespace:  Rebex.Net
Assembly:  Rebex.Sftp (in Rebex.Sftp.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)

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also