|
|
@ -56,12 +56,15 @@ end
|
|
|
|
|
|
|
|
|
|
|
|
function FileManagerHistory:updateItemTable()
|
|
|
|
function FileManagerHistory:updateItemTable()
|
|
|
|
function readHistDir(order_arg, re)
|
|
|
|
function readHistDir(order_arg, re)
|
|
|
|
local pipe_out = io.popen("ls "..order_arg.." -1 ./history")
|
|
|
|
for f in lfs.dir("./history") do
|
|
|
|
for f in pipe_out:lines() do
|
|
|
|
local filemode = lfs.attributes(f, "mode")
|
|
|
|
table.insert(re, {
|
|
|
|
|
|
|
|
dir = DocSettings:getPathFromHistory(f),
|
|
|
|
if filemode ~= "directory" then -- we can't use filemode == "file" here, when it should be "file" it is actually nil, weird
|
|
|
|
name = DocSettings:getNameFromHistory(f),
|
|
|
|
table.insert(re, {
|
|
|
|
})
|
|
|
|
dir = DocSettings:getPathFromHistory(f),
|
|
|
|
|
|
|
|
name = DocSettings:getNameFromHistory(f),
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|