go back using File.Exists on flotsam

This commit is contained in:
UbitUmarov
2020-08-14 01:49:58 +01:00
parent fe28d6b43f
commit a049e37952
2 changed files with 2 additions and 12 deletions

View File

@@ -548,16 +548,7 @@ namespace OpenSim.Region.CoreModules.Asset
string filename = GetFileName(id);
try
{
var fileinfo = new FileInfo(id);
if(fileinfo.Exists)
{
if(fileinfo.Length == 0)
{
fileinfo.Delete();
return false;
}
return true;
}
return File.Exists(GetFileName(id));
}
catch
{