local v,K=pcall(require,"\108\102\115")if not v then error("\076\101\109\117\114 \114\101\113\117\105\114\101\115 \076\117\097\070\105\108\101\083\121\115\116\101\109\044 \119\104\105\099\104 \099\111\117\108\100\110\'\116 \098\101 \102\111\117\110\100\058 "..K)end local c={}function c.isFile(v)return K.attributes(v,"\109\111\100\101")=="\102\105\108\101"end function c.isDirectory(v)return K.attributes(v,"\109\111\100\101")=="\100\105\114\101\099\116\111\114\121"end function c.read(v)local K,c=io.open(v,"\114")if not K then return nil,c end local U=K:read("\042\097\108\108")K:close()return U end c.dir=K.dir return c
local ok, lfs = pcall(require, "lfs")

if not ok then
	error("Lemur requires LuaFileSystem, which couldn't be found: " .. lfs)
end

local fs = {}

function fs.isFile(path)
	return lfs.attributes(path, "mode") == "file"
end

function fs.isDirectory(path)
	return lfs.attributes(path, "mode") == "directory"
end

function fs.read(path)
	local handle, err = io.open(path, "r")

	if not handle then
		return nil, err
	end

	local contents = handle:read("*all")

	handle:close()

	return contents
end

fs.dir = lfs.dir

return fs