Changes permissions of file(s) to specified mode.
Namespace: Renci.SshNetAssembly: Renci.SshNet (in Renci.SshNet.dll) Version: 0.1.0.0 (1.0.0.0)
Syntax
Parameters
- path
- Type:
System String
File(s) path, may match multiple files.
- mode
- Type:
System Int16
The mode.
Exceptions
| Exception | Condition |
|---|---|
| path is null. | |
| Renci.SshNet.Common SshConnectionException | Client is not connected. |
| Renci.SshNet.Common SftpPermissionDeniedException | Permission to change permission on the path(s) was denied by the remote host. -or- A SSH command was denied by the server. |
| Renci.SshNet.Common SftpPathNotFoundException | The path in path was not found on the remote host. |
| Renci.SshNet.Common SshException | A SSH error where |
See Also