# FTP Download

**URL:** https://www.finalbuilder.com/forums/t/ftp-download/4313
**Category:** Discussion
**Created:** [June 27, 2008, 1:33am UTC](https://www.finalbuilder.com/forums/t/ftp-download/4313 "2008-06-27T01:33:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [June 27, 2008, 1:33am UTC](https://www.finalbuilder.com/forums/t/ftp-download/4313/1 "2008-06-27T01:33:48Z")

</div>

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?

&nbsp;

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.&nbsp;

&nbsp;

Thanks again,

&nbsp;

Frank

---

<div class="post-metadata">

### Author: ![tate](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@tate](https://www.finalbuilder.com/forums/u/tate)
#### Post date: [June 30, 2008, 3:47am UTC](https://www.finalbuilder.com/forums/t/ftp-download/4313/2 "2008-06-30T03:47:03Z")

</div>

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)   
&nbsp;&nbsp;&nbsp;&nbsp; If File/Folder Exists (Fail if missing - set action to ignore failure)   
&nbsp;&nbsp;&nbsp;&nbsp; If Prev Action Failed   
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FTP Download File   
FTP Disconnect   
  
hth!
