mirror of https://github.com/tuyoogame/YooAsset
fix #167
parent
101960f6d8
commit
1aaf569396
|
@ -28,14 +28,13 @@ namespace YooAsset
|
||||||
|
|
||||||
public void DeleteFiles()
|
public void DeleteFiles()
|
||||||
{
|
{
|
||||||
if (File.Exists(DataFilePath))
|
try
|
||||||
{
|
{
|
||||||
File.Delete(DataFilePath);
|
Directory.Delete(FileRootPath, true);
|
||||||
}
|
}
|
||||||
|
catch (System.Exception e)
|
||||||
if (File.Exists(InfoFilePath))
|
|
||||||
{
|
{
|
||||||
File.Delete(InfoFilePath);
|
YooLogger.Warning($"Failed delete cache bundle folder : {e}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue