Click or drag to resize

SftpClientChangePermissions Method

Changes permissions of file(s) to specified mode.

Namespace: Crestron.SimplSharp.Ssh
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public void ChangePermissions(
	string path,
	short mode
)

Parameters

path  String
File(s) path, may match multiple files.
mode  Int16
The mode.
Exceptions
ExceptionCondition
ArgumentNullExceptionpath is null.
SshConnectionExceptionClient is not connected.
SftpPermissionDeniedExceptionPermission to change permission on the path(s) was denied by the remote host.

-or-

A SSH command was denied by the server.
SftpPathNotFoundExceptionThe path in path was not found on the remote host.
SshExceptionA SSH error where Message is the message from the remote host.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also