Im trying to automate downloading a latest file if its posted.
So, I open an ftp
list the ftp to a variable and it starts falling apart
I want to then extract each of the files (it will be a *.zip) into a new variable
and then check if that exists locally and is the same size (size check not essential would be nice)
and then download it if there isnt one.
Im struggling with the extracting the filenames out of the directory listing and checking if they exist locally or not…
Any ideas?
Hi Liz,
I suggest you try to use the FTP List Directory action with the “Put listing in variable” option selecting a variable you have defined (Tools | Edit Variables - add a variable called FTPFileList). Then you can use a List Iterator action with that variable in the List of Items field, ie. %FTPFileList%
So then the iterator will run it’s child actions for each file it finds (and it needs to set another variable for the “CurrentItem”). So then you can use a “Check if File Exists” action with the file to check being “c:\my path to the files%CurrentItem%”.
hth.
COOL that worked pretty well!!
Now it downloads stuff when a new file is posted, great! Just what I wanted, and in case Im not awake to notice, it will mail me!
excellent