Renames remote file on SFTP server.

Namespace: Jscape.Sftp
Assembly: Jscape.Ssh (in Jscape.Ssh.dll) Version: 2.7.2.0

Syntax

C#
public void RenameFile(
	string oldPath,
	string newPath
)
Visual Basic
Public Sub RenameFile ( _
	oldPath As String, _
	newPath As String _
)
Visual C++
public:
void RenameFile(
	String^ oldPath, 
	String^ newPath
)

Parameters

oldPath
Type: System..::..String
the old path
newPath
Type: System..::..String
the new path

Exceptions

ExceptionCondition
Jscape.Sftp..::..SftpExceptionif protocol error occurs

See Also