EpLibrary.cs.FolderHelper.CreateFolder C# (CSharp) Method

CreateFolder() public static method

Create given folder path from file system
public static CreateFolder ( String path ) : DirectoryInfo
path String the file path to create
return System.IO.DirectoryInfo
        public static DirectoryInfo CreateFolder(String path)
        {
            try
            {
                return Directory.CreateDirectory(path);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message + " >" + ex.StackTrace);
                return null;
            }
       }