SftpClient Open Method (String, FileMode)SSH .NET Client Library Documentation
Opens a SftpFileStream on the specified path with read/write access.

Namespace: Renci.SshNet
Assembly: Renci.SshNet (in Renci.SshNet.dll) Version: 0.1.0.0 (1.0.0.0)
Syntax

public SftpFileStream Open(
	string path,
	FileMode mode
)

Parameters

path
Type: OnlineSystem String
The file to open.
mode
Type: OnlineSystem.IO FileMode
A OnlineFileMode 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

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

See Also