|LocalDirectory||Directory on local machine to upload from.|
|RemoteDirectory||Directory on remote machine to upload to.|
To use this command you will need to have configured the server IP, username, and password to use. See here for details.
Caution! This command may overwrite or delete files. See the FTP page for details about setting up to use a dry run. With a dry run you can see what the command would have done.
This is supposed to be a simple copy-and-paste type command. By default, the command will: (1) Overwrite all files on remote machine. (2) Recurse into subdirectories and copy those also.
The difference between this command and FtpMirrorLocalToRemote is that this command will not delete any files on the remote machine. So the contents of the local and remote will not necessarily match.
Also, for this version, we do not put much in for handling broken connections and whatnot. It will simply return an error and it is presumed you will try again.
The command will copy not only the files in the local directory, but the subdirectories and their contents as well. It will make directories on the remote end if necessary.
You may encounter an issue where the directories created cannot be switched into because you have to set the permissions yourself. You may also want to check the documentation for your FTP server and/or do a search for how to configure it to allow users to create and use new directories.
If between this command and FtpMirrorRemoteToLocal you find you do not get the functionality you want, you may want to use FtpUploadDirectory in your code and pass it a mix of options to make it do what you want.