Handle lack of resave file
This commit is contained in:
@ -1281,8 +1281,16 @@ namespace CobXmlSupport
|
|||||||
|
|
||||||
private long fileSize(string fileStr)
|
private long fileSize(string fileStr)
|
||||||
{
|
{
|
||||||
FileInfo fi = new FileInfo(fileStr);
|
FileInfo fi;
|
||||||
return fi.Length;
|
try
|
||||||
|
{
|
||||||
|
fi = new FileInfo(fileStr);
|
||||||
|
return fi.Length;
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user