improve configuration mgmt code

This commit is contained in:
he2ss 2022-02-08 16:42:27 +01:00
parent d9513145f5
commit aadf53ee71

View file

@ -25,6 +25,9 @@ function M.read_file(path)
end
function M.file_exist(path)
if path ~= nil then
return false
end
local f = io.open(path, "r")
if f ~= nil then
io.close(f)