DirectOutputR1
DirectOutput framework R1 for virtual pinball cabinets.
Go to:
Overview 
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros Pages
DirectoryInfoExtensions.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using System.IO;
6 
7 
11 public static class DirectoryInfoExtensions
12 {
13 
17  public static void CreateDirectoryPath(this DirectoryInfo DI)
18  {
19  if (DI.Parent != null)
20  {
21  CreateDirectoryPath(DI.Parent);
22  }
23  if (!DI.Exists)
24  {
25  DI.Create();
26  }
27  }
28 
29 }
30