Implement store_report in the dashboard component

This commit is contained in:
Alfredo Cardigliano 2023-08-23 10:53:41 +02:00
parent 98504cc1b4
commit a7bf6accc3
3 changed files with 43 additions and 14 deletions

View file

@ -6,6 +6,22 @@ local file_utils = {}
local os_utils = require("os_utils")
local json = require "dkjson"
-- ##############################################
function file_utils.write_file(file_path, content)
local file = io.open(file_path, "w")
if not file then
return false
end
file:write(content)
file:close()
return true
end
-- ##############################################
function file_utils.read_file(file_path)