![]() |
| |||||||
Automation Anywhere Post messages and questions related to Automation Software here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
Has anyone found a way to loop through an FTP folder and only download the files that aren't already in your download directory? I'm currently using the 'FTP: Get all Remote Files In Folder "folderName\download" with criteria "*.*"' but I would prefer to compare each file with what exists in my download directory and only download the files that I don't have. My current task downloads about 100 files everyday when I only need 4 and the number increases by 4 files/day. Thanks, Matt |
| |||
|
Hello Matt, In that case, would the following work? You can download the files in the temporary folder & then you can compare these downloaded files with the files in the local folder. If those files do not exist, then it will copy in that local folder. Once this copy process is over, you can delete downloaded files. The text format of the task will look like as follows: FTP: Connect "tethyssolutions.com" FTP: Get All Remote Files in Folder "temp" with criteria "*.*" Start Loop “Each File in c:\temp" If File Does Not Exists ("d:\folder\$FileName$.$Extension$") Then Copy Files "c:\temp\$FileName$.$Extension$" to "d:\folder\$FileName$.$Extension$" End If End Loop Delete Files "c:\temp" |
![]() |
| Thread Tools | |
| Display Modes | |
| |