internal void CopySourceFoldersToCopy()
{
var foldersToCopy = this.SourceFoldersToCopy;
foreach(var folder in foldersToCopy)
{
if(string.IsNullOrWhiteSpace(folder))
{
continue;
}
var sourceFolderName = Path.Combine(this.Source, folder);
if(!Directory.Exists(sourceFolderName))
{
continue;
}
var destinationFolderName = Path.Combine(this.Destination, folder);
Console.WriteLine("... copying '{0}' to {1}", sourceFolderName, destinationFolderName);
Utils.DirectoryCopy(sourceFolderName, destinationFolderName, copySubFolders:true);
}
}