if config then
return Cursor._changes(self, config)
else
- local changes = {}
- for k,v in pairs(require "luci.fs".dir(self:get_savedir())) do
- if v ~= "." and v ~= ".." then
- util.update(changes, Cursor._changes(self, v))
+ local changes = Cursor._changes(self)
+ util.copcall(function()
+ for k,v in pairs(require "luci.fs".dir(self:get_savedir())) do
+ if v ~= "." and v ~= ".." then
+ util.update(changes, Cursor._changes(self, v))
+ end
end
- end
+ end)
return changes
end
end