mlyDevMerge1.5.7
hevinci 2023-09-25 15:08:43 +08:00 committed by QiJing
parent 2321b1556b
commit fe6029936e
1 changed files with 4 additions and 5 deletions

View File

@ -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}");
} }
} }
} }