FileList | List of files to upload. |
TargetRemoteDirectory | Optional. Remote directory to upload to. By default it will upload to the directory it connects to. |
The command will open a connection by using the configuration, switch to the target remote directory, upload each file, and then close the connection.
If you want to be able to upload to various different directories on the remote machine, you can call the command multiple times, or, better yet, manage the connection yourself and use ftp::Put
.
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 upload fails, an error will be raised and the command will terminate without trying to recover or continue.
% # 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