Renames remote file on SFTP server.
Namespace: Jscape.SftpAssembly: 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
Exception | Condition |
---|---|
Jscape.Sftp..::..SftpException | if protocol error occurs |