1
0
mirror of https://github.com/kepler155c/opus synced 2026-01-05 22:49:05 +00:00

major directory reorganize

This commit is contained in:
kepler155c@gmail.com
2017-05-20 18:27:26 -04:00
parent 7954c79d66
commit c8147ef9e8
85 changed files with 67 additions and 59 deletions

View File

@@ -3,10 +3,10 @@ local Util = require('util')
local Config = { }
Config.load = function(fname, data)
local filename = '/config/' .. fname
local filename = 'usr/config/' .. fname
if not fs.exists('/config') then
fs.makeDir('/config')
if not fs.exists('usr/config') then
fs.makeDir('usr/config')
end
if not fs.exists(filename) then
@@ -17,7 +17,7 @@ Config.load = function(fname, data)
end
Config.update = function(fname, data)
local filename = '/config/' .. fname
local filename = 'usr/config/' .. fname
Util.writeTable(filename, data)
end