0
In C# to download a file use the code:
using System.Net;
void Baixar(string url, string saida)
{
WebClient wc=new WebClient();
wc.DownloadFileAsync(new Uri(url), saida);
}
So far I haven’t found any well explained code regarding downloading folders from a server.
O.B.S.: When using this same code the application does not report any effect and the location where should download the files remains the same.
I don’t think there’s any way to recursive download paths and all files contained in that path... The method
DownloadFileAsync
can be used to download an individual file. You have to call that method once for each file.– dcastro
One option is to compress the directory in a Zip and send as a file.
– Leonel Sanches da Silva