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

17 lines
249 B
Lua
Raw Permalink Normal View History

2019-02-03 19:40:28 +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