-
-
Notifications
You must be signed in to change notification settings - Fork 4
SSH.SFTPSession.CreateStream
Andrew Lambert edited this page Nov 26, 2022
·
11 revisions
SSH.SFTPSession.CreateStream
Function CreateStream(FileName As String, Flags As Integer, Mode As Integer, Directory As Boolean) As SSH.SFTPStream
Name | Type | Comment |
---|---|---|
FileName |
String | The name of the file or directory on the server. |
Flags |
Integer | A bitmask of any reasonable combination of the LIBSSH2_FXF_* constants. |
Mode |
Integer | The Unix-style permissions to apply to the file or directory, if applicable given the operation(s) specified in the Flags . |
Directory |
Boolean | If True then the operation is expecting FileName to refer to a directory. |
Returns an instance of SFTPStream, or Nil
on error. Check SFTPSession.LastError for error details.
This method opens a SFTPStream
according to the parameters. It is a more generic version of the Append, Get, Put, and ListDirectory methods, allowing custom functionality.
-
libssh2_sftp_open_ex in the libssh2 documentation for a description of the possible
Flags
,
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2018-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.