CSharp examples for File IO:Directory
Ensure Parent Exists
using System.Text.RegularExpressions; using System.IO;//from ww w .ja va 2 s . co m using System.Collections.Generic; using System; public class Main{ public static void EnsureParentExists(string path) { var parentPath = Path.GetDirectoryName(path); EnsureFolderExists(parentPath); } }