Opens a SftpFileStream on the specified path, with the specified mode and 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, FileAccess access )
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.
- access
- Type:
System.IO FileAccess
A
FileAccess 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
| Exception | Condition |
|---|---|
| path is null. |
See Also