FTP Download

Guys I have a question regarding file pickup...

I have a cron task that generates a file daily file; the filename stays the same and has a sequence number attached to it...

for example yesterdays file was "MyComptoTHEIR_RPT_00000011.dat"

Now my job has the following actions

1. FTP connect

2. FTP Change directory

3. FTP Download file (I am stuck here)

What command or action do i need to use so that it picks up the next file?

 

I am still new at this so please have some patience.

I will like to grab this file, encrypt it with PGP key and FTP to a customer. 

 

Thanks again,

 

Frank

Hi Frank,

This is what I'd start with:

FTP Connect
FTP Change Directory
FTP List Directory (put list in variable DirList)
List Iterator (iterate over DirList)
     If File/Folder Exists (Fail if missing - set action to ignore failure)
     If Prev Action Failed
         FTP Download File
FTP Disconnect

hth!