This code has no troubles copying all files that are in the directory. But, it does not maintain folder structure it only copies the files. Any ideas on what I need to change in order to maintain folder structure?
string server = cbServer.SelectedItem.ToString();
string input = "\\\\" + server + "\\F\\Input";
string folderPath = txtPath.Text;
foreach (var file in System.IO.Directory.GetFiles(folderPath, "*", SearchOption.AllDirectories))
File.Copy(file, System.IO.Path.Combine(input, Path.GetFileName(file)), true);