FileList | List of files to download from the remote server. |
TargetRemoteDirectory | Optional. Remote directory to download from. |
The command will open a connection by using the configuration data, switch to the target directory, download the files, and close the connection.
To use this command you must have already configured FTP, as in About FTP Use.
In the current version of this command, there are no options with which to set an overwrite policy. The command will simply overwrite any existing files (if it has permissions).
If any file on the list cannot be downloaded, an error will be raised. In a future release we may add functionality that allows for setting a policy that directs the command to continue despite files not being found.
% # FTP was already configured elsewhere
% String2File "my file" my.txt
% FtpUploadFiles my.txt
% file delete my.txt
% FtpDownloadFiles my.txt
% File2String my.txt
my file