sonic-radiance/sonic-radiance.love/libs/loveutils/filesystem.lua

17 lines
249 B
Lua
Raw Normal View History

2019-01-27 20:27:47 +01:00
local Filesystem = {}
function Filesystem.exists(filepath)
local info = love.filesystem.getInfo( filepath )
local exists = false
if (info == nil) then
exists = false
else
exists = true
end
return exists
end
return Filesystem