mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 10:15:33 +08:00
go back using File.Exists on flotsam
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user