Opens a SftpFileStream on the specified path with read/write access.
Namespace: Renci.SshNetAssembly: 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:
System String
The file to open.
- mode
- Type:
System.IO 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
An unshared SftpFileStream that provides access to the specified file, with the specified mode and access.Exceptions
| Exception | Condition |
|---|---|
| path is null. |
See Also