dont backup non existing files ...
This commit is contained in:
@ -123,7 +123,10 @@ namespace CobXmlSupport
|
||||
File.Delete(backupfile);
|
||||
}
|
||||
|
||||
if (File.Exists(inPath + codeFile))
|
||||
{
|
||||
File.Move(inPath + codeFile, backupfile);//+ DateTime.Now.ToString());
|
||||
}
|
||||
File.WriteAllText(inPath + codeFile, codeComplInit);
|
||||
|
||||
refreshWindow();
|
||||
|
||||
Reference in New Issue
Block a user