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