Skip to content

Instantly share code, notes, and snippets.

View StickNitro's full-sized avatar
🏠
Working from home

Neil Stevens StickNitro

🏠
Working from home
View GitHub Profile
@StickNitro
StickNitro / Utilities.cake
Created March 14, 2017 11:08 — forked from RichiCoder1/Utilities.cake
Copy Directory helper
public void CopyDirectory(string source, string destination)
{
// Get the subdirectories for the specified directory.
var dir = new DirectoryInfo(source);
var dirs = dir.GetDirectories();
if (!dir.Exists)
{
throw new DirectoryNotFoundException(
"Source directory does not exist or could not be found: "