libs/uci: Optimized workaround
This commit is contained in:
parent
765d5b8540
commit
bdf75b1e03
1 changed files with 7 additions and 5 deletions
|
@ -153,12 +153,14 @@ function Cursor.changes(self, config)
|
||||||
if config then
|
if config then
|
||||||
return Cursor._changes(self, config)
|
return Cursor._changes(self, config)
|
||||||
else
|
else
|
||||||
local changes = {}
|
local changes = Cursor._changes(self)
|
||||||
for k,v in pairs(require "luci.fs".dir(self:get_savedir())) do
|
util.copcall(function()
|
||||||
if v ~= "." and v ~= ".." then
|
for k,v in pairs(require "luci.fs".dir(self:get_savedir())) do
|
||||||
util.update(changes, Cursor._changes(self, v))
|
if v ~= "." and v ~= ".." then
|
||||||
|
util.update(changes, Cursor._changes(self, v))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end)
|
||||||
return changes
|
return changes
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue