mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Implement store_report in the dashboard component
This commit is contained in:
parent
98504cc1b4
commit
a7bf6accc3
3 changed files with 43 additions and 14 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue