cocos2d-x 重大Bug 安卓平台 目录是存在的 然后去目录一查 发现还在

– 删除文件
local isUpdate = cc.FileUtils:getInstance():isDirectoryExist(cc.FileUtils:getInstance():getWritablePath() … “update”)
if isUpdate == true then
self:getApp():addView(“MessageBox”,cm.getText(1156) … cc.FileUtils:getInstance():getWritablePath() … “update”,nil,nil,true)
local removeDir = cc.FileUtils:getInstance():removeDirectory(cc.FileUtils:getInstance():getWritablePath() … “update/”)
if removeDir == true then
print(“Remove update directory Success !”)
self:getApp():addView(“MessageBox”,cm.getText(1155) … cc.FileUtils:getInstance():getWritablePath() … “update/”,nil,nil,true)
else
self:getApp():addView(“MessageBox”,cm.getText(1158) … cc.FileUtils:getInstance():getWritablePath() … “update/”,nil,nil,true)
end
else
self:getApp():addView(“MessageBox”,cm.getText(1157) … cc.FileUtils:getInstance():getWritablePath() … “update”,nil,nil,true)
end