Jak pobrać folder z ftp za pomocą C#. pliki typu exe. to nie problem. Lecz pobranie folderu sprawia mi problem ;/ Tutaj mój kod:
private void DownloadFileFTP2()
{
string inputfilepath = @"C:\VB\VB_Data";
string ftphost = "xxxxxx.xxx.pl";
string ftpfilepath = "VB_Data//";
string ftpfullpath = "ftp://" + ftphost + "//" + ftpfilepath;
WebClient request = new WebClient();
request.Credentials = new NetworkCredential("Login", "Hasło");
byte[] fileData = request.DownloadData(ftpfullpath);
FileStream file = File.Create(inputfilepath);
file.Write(fileData, 0, fileData.Length);
file.Close();
MessageBox.Show("Pobrano");
}