fusionpbx/resources/install/scripts/resources/functions/file_exists.lua

8 lines
149 B
Lua

--check if a file exists
function file_exists(name)
local f = io.open(name, "r")
if not f then return end
f:close()
return name
end