Atmel_bsp_generator.Program.CopyAddSourceFiles C# (CSharp) Method

CopyAddSourceFiles() static private method

static private CopyAddSourceFiles ( string pStartDir ) : void
pStartDir string
return void
        static void CopyAddSourceFiles(string pStartDir)
        {
            string aSourceFile = pStartDir + @"\sam\utils\cmsis\samg\samg54\include\component\component_twihs.h";
            string aTargetFile = pStartDir + @"\sam\utils\cmsis\samg\samg55\include\component\twihs.h";

             if (!File.Exists(aSourceFile))
                    throw new Exception(aSourceFile + " Source file does not exist");

            if (!File.Exists(aTargetFile))
                File.Copy(aSourceFile,aTargetFile, true);
        }