FTP - Download Files Greater Than Zero
Download files greater than zero (0) via FTP
This sample task will demonstrate how Automate can download files greater than zero (0) via FTP. Automate will do the following:
1. Logon to a FTP server.
2. Execute the 'Get long file list' command using Automate's FTP Advanced action and populate a dataset with the results.
3. Loop through the dataset FileList, which has a list of files and folders on the FTP server.
4. Check if the file size is greater than zero by referencing %FileList.FTPFileSize%.
5. Download the file %FileList.FTPFileName% if the file size is greater than zero. If the file is zero, the task will skip it and loop to the next file.
This same task can be modified to specify any size, greater or less than, and any file extension.