Bricklayer.Client.IO.CheckFiles C# (CSharp) Method

CheckFiles() public static method

Checks to make sure the application files are there, if not it will create them
public static CheckFiles ( ) : void
return void
        public static void CheckFiles()
        {
            //Check if the main directory exists. If its dosent, Create the main directory
            if (!Directory.Exists(MainDirectory))
                Directory.CreateDirectory(MainDirectory);
            //Now check for each sub-folder. If they dont exist, then add them
            foreach (KeyValuePair<string, string> kv in Directories)
                if (!Directory.Exists(kv.Value))
                    Directory.CreateDirectory(kv.Value);
        }