This commit is contained in:
2020-08-18 09:43:15 +08:00
parent 21eb68aeab
commit 0b577c501c
4 changed files with 48 additions and 7 deletions

View File

@@ -103,7 +103,9 @@ function TRPSetting:setEventDelegate()
Utl.chgToSDCard(
Path.Combine(Application.persistentDataPath, CLPathCfg.self.basePath, "download")
)
Directory.Delete(downloadDir)
if Directory.Exists(downloadDir) then
Directory.Delete(downloadDir)
end
pcall(cleanRes)
local panel = CLPanelManager.getPanel(CLMainBase.self.firstPanel)