mirror of
https://github.com/mt-mods/xcompat.git
synced 2025-01-03 14:50:40 +01:00
8 lines
175 B
Lua
8 lines
175 B
Lua
|
local utilities = {}
|
||
|
|
||
|
function utilities.file_exists(name)
|
||
|
local f=io.open(name,"r")
|
||
|
if f~=nil then io.close(f) return true else return false end
|
||
|
end
|
||
|
|
||
|
return utilities
|