Update waf_common.lua

This commit is contained in:
midoks
2023-02-12 02:12:34 +08:00
parent 5ef4b3d05d
commit 177a08af91
+6
View File
@@ -390,6 +390,12 @@ function _M.read_file(self, name)
return data
end
function _M.file_exists(self,path)
local file = io.open(path, "rb")
if file then file:close() end
return file ~= nil
end
function _M.select_rule(self, rules)
if not rules then return {} end