This project is read-only.

FTP activity - issue with uploading files & directories recursively

May 21, 2014 at 5:53 PM
Edited May 21, 2014 at 5: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:


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:
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.



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