private void CopyDir(string path, string targetPath) { path = GetRelativePath(path); targetPath = GetRelativePath(targetPath); try { _fileSystem.CopyFolder(path, targetPath, false); Response.Write(GetResultString()); } catch (Exception ex) { throw ex; } }