using System; using System.IO; namespace sharp.extensions { public static class DirectoryExtensions { public static void EnsureDirectoryExists(string path){ if (!Directory.Exists(path)){ Directory.CreateDirectory(path); } } } }