Click or drag to resize

SftpClientChangeDirectory Method

Changes remote directory to path.

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

Parameters

path  String
New directory path.
Exceptions
ExceptionCondition
ArgumentNullExceptionpath is null.
SshConnectionExceptionClient is not connected.
SftpPermissionDeniedExceptionPermission to change directory denied by 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