local path = "/.storage/"
function create (dataset)
fs.makeDir(path..dataset)
end
function set (file, data)
if not data then
return clear(file)
end
local fd = fs.open(path..file, "w")
fd.writeLine(data)
fd.flush()
return fd.close()
end
function get (file)
local fd = fs.open(path..file, "r")
if nil == fd then return nil end
local data = fd.readLine()
fd.close()
return data
end
function clear (file)
return fs.delete(path..file)
end