# Recursive FTP upload doesn't seem to work

**URL:** https://www.finalbuilder.com/forums/t/recursive-ftp-upload-doesnt-seem-to-work/3023
**Category:** Bugs
**Created:** [August 28, 2008, 5:41am UTC](https://www.finalbuilder.com/forums/t/recursive-ftp-upload-doesnt-seem-to-work/3023 "2008-08-28T05:41:52Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![hans\_nieuwenhuis](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/h/87869e/32.png) [@hans\_nieuwenhuis](https://www.finalbuilder.com/forums/u/hans_nieuwenhuis)
#### Post date: [August 28, 2008, 5:41am UTC](https://www.finalbuilder.com/forums/t/recursive-ftp-upload-doesnt-seem-to-work/3023/1 "2008-08-28T05:41:52Z")

</div>

FinalBuilder 6.1.0.866

Hi, I'm using an FTP Upload action trying to recursively upload directories/files.

This is from the helpfile:

"_If you specify a filespec, then setting the recursive option will find any matching files in any subdirectories of the Local Directory. The files will be placed into the correct subdirectories on the FTP server. Subdirectories on the server will be created if required._"

However all my (local) subdirectories are placed in the root-directory where I'm uploading to....

Any ideas?

---

<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: [August 29, 2008, 2:32am UTC](https://www.finalbuilder.com/forums/t/recursive-ftp-upload-doesnt-seem-to-work/3023/2 "2008-08-29T02:32:41Z")

</div>

Hi Hans,   
  
 just need to understand fully what’s happening.   
  
 Here’s an example:   
  
 Local Dir:   
 a.txt   
 Dir1\b.txt   
  
 When this uploads, do you get:   
 a.txt   
 Dir1\b.txt   
  
 or do you get:   
 a.txt   
 Dir1   
 b.txt   
  
 ?

---

<div class="post-metadata">

### Author: ![hans\_nieuwenhuis](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/h/87869e/32.png) [@hans\_nieuwenhuis](https://www.finalbuilder.com/forums/u/hans_nieuwenhuis)
#### Post date: [August 29, 2008, 7:42am UTC](https://www.finalbuilder.com/forums/t/recursive-ftp-upload-doesnt-seem-to-work/3023/3 "2008-08-29T07:42:52Z")

</div>

Hi Tate,

I tried to upload the following:

Dir 1 \ Dir 2 \ file 1

Dir 1 \ Dir 2 \ file 2

Dir 1 \ Dir 2 \ file 3

It ended up like this:

Dir 1

Dir 2 \ file 1

Dir 2 \ file 2  
  
Dir 2 \ file 3

So, "Dir 2" was not placed under "Dir 1" as I would have expected.

---

<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: [September 1, 2008, 1:46am UTC](https://www.finalbuilder.com/forums/t/recursive-ftp-upload-doesnt-seem-to-work/3023/4 "2008-09-01T01:46:16Z")

</div>

Thanks - will try to reproduce.   
  
 What FTP server are you using? (ie. version, OS, etc)

---

<div class="post-metadata">

### Author: ![hans\_nieuwenhuis](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/h/87869e/32.png) [@hans\_nieuwenhuis](https://www.finalbuilder.com/forums/u/hans_nieuwenhuis)
#### Post date: [September 1, 2008, 4:09am UTC](https://www.finalbuilder.com/forums/t/recursive-ftp-upload-doesnt-seem-to-work/3023/5 "2008-09-01T04:09:09Z")

</div>

FTP server: sorry, I have no idea....it's a shared hosted website....on a Windows Server machine. How can I determine which FTP server they use there?

Recursively uploading directories with Total Commander to that website does work correctly though.

---

<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: [September 2, 2008, 2:18am UTC](https://www.finalbuilder.com/forums/t/recursive-ftp-upload-doesnt-seem-to-work/3023/6 "2008-09-02T02:18:55Z")

</div>

If you use the command line ftp client in Windows, it should show you the server type when the connection is made.   
  
 I did a quick test here and the recursion is working as expected for me.   
  
 This is what I did:   
 Local filesystem: c:\temp\root\Dir1\Dir2\file1.txt   
  
 In the FTP upload action I set local directory to c:\temp\root\ and the filespec to _._ and turned on recursive.

---

<div class="post-metadata">

### Author: ![hans\_nieuwenhuis](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/h/87869e/32.png) [@hans\_nieuwenhuis](https://www.finalbuilder.com/forums/u/hans_nieuwenhuis)
#### Post date: [September 2, 2008, 5:13am UTC](https://www.finalbuilder.com/forums/t/recursive-ftp-upload-doesnt-seem-to-work/3023/7 "2008-09-02T05:13:45Z")

</div>

Ah, I see what my problem is:

If I continue with your example, I put as 'local directory' in the FTP Upload action the value "C:\Temp \ Root \ Dir1", because I expected that 'Dir1' would also be uploaded....but only the \*contents\* of 'Dir1' will be uploaded. Sounds logical.

Thanks for your help!

&nbsp;
