SftpClient Open Method (String, FileMode, FileAccess)SSH .NET Client Library Documentation
Opens a SftpFileStream on the specified path, with the specified mode and 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,
	FileAccess access
)

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.
access
Type: OnlineSystem.IO FileAccess
A OnlineFileAccess value that specifies the operations that can be performed on the file.

Return Value

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

See Also