correct parsing unzip output (#10625)

This commit is contained in:
hius07
2023-06-30 17:48:44 +03:00
committed by GitHub
parent b8af326836
commit 5db765e4e5

View File

@@ -98,7 +98,7 @@ function ArchiveViewer:getZipListTable(file)
local std_out = io.popen("unzip ".."-qql \""..file.."\"")
for line in std_out:lines() do
-- entry datetime not used so far
local fsize, fname = string.match(line, "%s+(%d+)%s+%d%d%-%d%d%-%d%d%d%d%s+%d%d:%d%d%s+(.+)")
local fsize, fname = string.match(line, "%s+(%d+)%s+[-0-9]+%s+[0-9:]+%s+(.+)")
parse_path(fname, fsize or 0)
end
end