从premake cookbook,我得到以下代码:
solution "MySolution"
configurations { "Debug", "Release" }
configuration { "Debug" }
targetdir "bin/debug"
configuration { "Release" }
targetdir "bin/release"
if _ACTION == "clean" then
os.rmdir("bin")
end
我在普通的lua app中尝试了os.rmdir(“bin”),把它放在我的hello1.lua中,用这个命令运行它:
lua hello1.lua
但是得到错误:
lua: hello1.lua:11: attempt to call field 'rmdir' (a nil value)
stack traceback:
hello1.lua:11: in main chunk
[C]: in ?
似乎os.rmdir不是标准的lua函数,只是来自premake4,我是对的吗? 我在哪里可以找到os.rmdir的文档?