-- @class module
-- @cstyle instance
-require "nixio.util"
-
local fs = require "nixio.fs"
local uci = require "luci.model.uci"
local util = require "luci.util"
+local nutil = require "nixio.util"
local table = require "table"
local string = require "string"
local bc = "%s/bytecode/%s.lua" %{ self.schemedir, shm }
if not fs.access(bc) then
- local files = nixio.util.consume(fs.glob(self.schemedir .. '/*/' .. shm))
+ local files = nutil.consume((fs.glob(self.schemedir .. '/*/' .. shm)))
if #files > 0 then
local ok, err
- for file in files do
+ for _, file in ipairs(files) do
if not fs.access(file) then
return false, so:error(ERR.SME_READ(so,file))
end
local tplmt = fs.stat(sourcefile, "mtime") or fs.stat(sourcefile .. ".htm", "mtime")
local commt = fs.stat(compiledfile, "mtime")
- if not fs.mtime(cdir) then
+ if not fs.stat(cdir, "mtime") then
fs.mkdirr(cdir)
fs.chmod(fs.dirname(cdir), 777)
end
</fieldset>
<br />
- <% if fs.access("/proc/net/ipv6_route") then style = true %>
+ <% if nixio.fs.access("/proc/net/ipv6_route") then style = true %>
<fieldset class="cbi-section" id="cbi-table-table">
<legend><%:a_n_routes_kernel6%></legend>