Closed mr-bogey closed 5 years ago
FileUtils的removeDirectory没有为Windows格式化路径,导致cmd执行失败
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) std::string command = "cmd /c rd /s /q "; // Path may include space. command += "\"" + path + "\""; if (WinExec(command.c_str(), SW_HIDE) > 31) return true; else return false;
给一个测试案例,便于调试。
https://github.com/mr-bogey/base 这个工程的Updater啊
removefile 都转换了啊
https://github.com/u0u0/Quick-Cocos2dx-Community/commit/ce3d889979d0aa24a479778e9dca37687d6483c1
FileUtils的removeDirectory没有为Windows格式化路径,导致cmd执行失败