<t>Much easier<br/>
<br/>
private static void CopyFilesRecursively(string sourcePath, string targetPath)<br/>
{<br/>
//Now Create all of the directories<br/>
foreach (string dirPath in Directory.GetDirectories(sourcePath, "*", SearchOption.AllDirectories))<br/>
{<br/>
Directory.CreateDirectory(dirPath.Replace(sourcePath, targetPath));<br/>
}<br/>
<br/>
//Copy all the files & Replaces any files with the same name<br/>
foreach (string newPath in Directory.GetFiles(sourcePath, "*.*",SearchOption.AllDirectories))<br/>
{<br/>
File.Copy(newPath, newPath.Replace(sourcePath, targetPath), true);<br/>
}<br/>
}<br/>
<br/>
```</t>