download Method
Download a RemoteFile from an FTP server.
Syntax
def download() -> None: ...
Remarks
This method is used to download the remote file specified by remote_file to the local file specified by local_file, or it is retrieved through the on_transfer event if the local_file property is "" (empty string). remote_file is either an absolute path on the server, or a path relative to remote_path. If there is no FTP session in place, one is automatically created by first calling the logon method.
Example (Download a File)
FTPControl.LocalFile = "C:\localfile.txt" FTPControl.RemoteFile = "remotefile.txt" FTPControl.Download() FTPControl.LocalFile = "C:\localfile2.txt" FTPControl.RemoteFile = "folder/remotefile2.txt" FTPControl.Download()