Recursive FTP upload doesn't seem to work

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?

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

?

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.

Thanks - will try to reproduce.

What FTP server are you using? (ie. version, OS, etc)

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.

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.

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!