improve configuration mgmt code
This commit is contained in:
parent
d9513145f5
commit
aadf53ee71
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue