NAME
FtpDownloadFiles — Open connection, download files, close connection.
SYNOPSIS
FtpDownloadFiles FileList ?TargetRemoteDirectory?
DESCRIPTION
Return Value
None.
Arguments
FileListList of files to download from the remote server.
TargetRemoteDirectoryOptional. Remote directory to download from.
More Info
This command is for downloading a bunch of files from the configured server, using just one line of code, without you having to also manage the connection yourself. This may make it more convenient to use FTP within an application.

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.


For information regarding exceptions / errors, see here.
EXAMPLES
% # 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
SEE ALSO
FtpDownloadDirectory, FtpDownloadSite, FtpUploadFiles
KEYWORDS
file, network