Handle lack of resave file

This commit is contained in:
2015-07-22 23:50:15 +02:00
parent e35dbc8df2
commit 6c5a99f59a

View File

@ -1281,8 +1281,16 @@ namespace CobXmlSupport
private long fileSize(string fileStr)
{
FileInfo fi = new FileInfo(fileStr);
return fi.Length;
FileInfo fi;
try
{
fi = new FileInfo(fileStr);
return fi.Length;
}
catch (Exception)
{
return 0;
}
}