FTP activity - issue with uploading files & directories recursively

May 21, 2014 at 4:53 PM
Edited May 21, 2014 at 4:55 PM
Hello there. I'm hoping you can help. I've followed the documentation here and got to grips with the FTP activity pretty easily. I'm encountering one major problem though, and I'm hoping someone can help me out.

My Web app has a basic enough structure:

Image

I start by creating the FindMatchingFile activity which places all the files in the drop location into an IEnumberabel<string> variable called FilesToFTP :
String.Format("{0}\**\*.*", BuildDetail.DropLocation)
When I iterate through the variable and print out the results, all seems correct:
G:\builds\Build.1203\CredentialManagement\bin\BusLogic.dll
G:\builds\Build.1203\CredentialManagement\css\style.css
G:\builds\Build.1203\CredentialManagement\AppError.aspx
......
G:\builds\Build.1203\CredentialManagement\Web.config
etc etc.

The problem is, when I then pass that IEnumerable to the Ftp activity (converting it to a string array), it FTP uploads all the files on the server however it doesn't keep the directory structure of my Web app. See the following two screenshots.

Image

Image

I'm sitting here pulling my hair out and I would appreciate some help!