if arch_type == 'zip' then
-- Find specific files/folders in zip file
- local files = arch:get_files() or {}
+ local files = arch:get_files(100) or {}
for _,file in ipairs(files) do
if file == '[Content_Types].xml' then
add_msoffice_confidence(10)
-- check filenames in archives
if p:is_archive() then
local arch = p:get_archive()
- local filelist = arch:get_files_full()
+ local filelist = arch:get_files_full(1000)
for _,f in ipairs(filelist) do
ext,ext2 = gen_extension(f.name)
if match_filter(task, ext, rule.mime_parts_filter_ext)
end
if check then
- local fl = arch:get_files_full()
+ local fl = arch:get_files_full(1000)
local nfiles = #fl
for _,p in fun.iter(fun.filter(filter_parts, parts)) do
if filter_archive(p) then
- local fnames = p:get_archive():get_files()
+ local fnames = p:get_archive():get_files(1000)
for _,fn in ipairs(fnames) do
match_filename(rule, fn)