-
-
Notifications
You must be signed in to change notification settings - Fork 4
SSH.SFTPDirectory.OpenFile
Andrew Lambert edited this page Apr 22, 2024
·
9 revisions
SSH.SFTPDirectory.OpenFile
Function OpenFile(Optional FileName As String, TruePath As Boolean = False) As SSH.SFTPStream
Function OpenFile(Index As Integer) As SSH.SFTPStream| Name | Type | Comment |
|---|---|---|
FileName |
String | Optional. The name of the file in the directory to be downloaded. If not specified then the CurrentName property is used. |
TruePath |
Boolean | Optional. If True and the FileName refers to a symlink, then target file is opened directly using its true path rather than the link's path. |
| Name | Type | Comment |
|---|---|---|
Index |
Integer | The index, in the current directory, of the file to be downloaded. |
An SFTPStream from which file data can be read, or Nil on error. Check SFTPDirectory.LastError if this method returns Nil.
Open a file in the directory for download.
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.