Renames remote file from old path to new path.
Namespace: Renci.SshNetAssembly: Renci.SshNet (in Renci.SshNet.dll) Version: 0.1.0.0 (1.0.0.0)
Syntax
Parameters
- oldPath
- Type:
System String
Path to the old file location.
- newPath
- Type:
System String
Path to the new file location.
Exceptions
| Exception | Condition |
|---|---|
| oldPath is null. -or- or newPath is null. | |
| Renci.SshNet.Common SshConnectionException | Client is not connected. |
| Renci.SshNet.Common SftpPermissionDeniedException | Permission to rename the file was denied by the remote host. -or- A SSH command was denied by the server. |
| Renci.SshNet.Common SshException | A SSH error where |
See Also