private static void CopyFilesRecursively(String SourcePath, String DestinationPath)
{
foreach (string dirPath in Directory.GetDirectories(SourcePath, "*", SearchOption.AllDirectories))
Directory.CreateDirectory(dirPath.Replace(SourcePath, DestinationPath));
foreach (string newPath in Directory.GetFiles(SourcePath, "*.*", SearchOption.AllDirectories))
File.Copy(newPath, newPath.Replace(SourcePath, DestinationPath)); }
This works but it says a file in the directory already exists... But i made it so if the folder exists it is deleted before i copy the new folder