-
-
Notifications
You must be signed in to change notification settings - Fork 11
libcURL.FTPWildCard.QueueFile
Andrew Lambert edited this page Nov 7, 2023
·
3 revisions
libcURL.FTPWildCard.QueueFile
Event Function QueueFile(RemoteName As String, ByRef LocalFile As FolderItem, Type As Integer, UnixPerms As Permissions) As Boolean
Name | Type | Comment |
---|---|---|
RemoteName | String | The name of the remote file which is about to be downloaded. |
LocalFile | FolderItem | Passed by reference, the proposed destination for the download. |
Type | Integer | The type of entry (File, directory, symlink, etc.) |
UnixPerms | Permissions | The Unix-style permissions for the remote file, if available. |
Return True
to skip the file.
This event handles the CURLOPT_CHUNK_BGN_FUNCTION callback. It indicates that the file specified by the parameters is about to begin transferring.
The proposed destination is passed as the LocalFile
parameter; you may override the destination by manipulating LocalFile
. Setting LocalFile
to Nil
will cause the DataAvailable
event to be raised instead of writing received data to a file.
The Type
parameter corresponds to one of these class constants:
- FILETYPE_BLOCK
- FILETYPE_CHAR
- FILETYPE_DIR
- FILETYPE_FILE
- FILETYPE_PIPE
- FILETYPE_SOCKET
- FILETYPE_SYM
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2014-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.