public static void CreateDirectoryIfNotExists(this string path) { if (Directory.Exists(path)) return; Directory.CreateDirectory(path); }