Create Dir - CSharp System.IO

CSharp examples for System.IO:DirectoryInfo

Description

Create Dir

Demo Code


using System.IO;/*w  w  w  .j av a  2 s  . co  m*/
using System;

public class Main{
        public static void CreateDir(string destDirectory)
        {
            if (!string.IsNullOrEmpty(destDirectory) && !Directory.Exists(destDirectory))
            {
                Directory.CreateDirectory(destDirectory);
            }
        }
}

Related Tutorials