|
Summary
Get multiple files/directories from server.
Syntax
| Boolean GetMultipleFile (LocalDir, Remote, Recursive) |
| |
LocalDir |
String |
| |
Remote |
String |
| |
Recursive |
Boolean |
Description
This function transfers multiple files from the host machine to the local system. The function can transfer specific files or entire directories. If the Recursive flag is set to True
then the files will be transferred recursively.
The LocalDir parameter is a directory name and the Remote is specified as comma-separated file or directory names. For all directories, the transfer is always recursive. Wildcards
can be specified for the Remote parameter.
If the files were successfully transferred, then the method returns True; otherwise, it returns False. The application should ensure that the method was successfully executed by checking the return
value. The method also sets the LastResult property. The value of the LastResult property can be checked to determine if any error occurred.
The application can abort the entire operation by calling Cancel at any time during the GetMultipleFile function call. Files are always transferred in direct mode. If mode is set to event transfer,
it is ignored.
Note
The Ascii or binary method needs to be called prior to this method.
Example
Result = FTPClient.GetMultipleFile ("c:\test", "test.exe, test1", True) If Result = False Then MsgBox "Cannot get files from server", 64, "Sample Program"
End If
|