Handle lack of resave file
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user