Click or drag to resize

SftpClientOpen(String, FileMode) Method

Opens a SftpFileStream on the specified path with read/write access.

Namespace: Crestron.SimplSharp.Ssh
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public SftpFileStream Open(
	string path,
	FileMode mode
)

Parameters

path  String
The file to open.
mode  FileMode
A FileMode value that specifies whether a file is created if one does not exist, and determines whether the contents of existing files are retained or overwritten.

Return Value

SftpFileStream
An unshared SftpFileStream that provides access to the specified file, with the specified mode and access.
Exceptions
ExceptionCondition
ArgumentNullExceptionpath is null.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also