improved output for unarchive

This commit is contained in:
Izaya 2019-07-22 13:36:42 +10:00
parent 33477c7528
commit b68f1ad9e1

View File

@ -23,6 +23,7 @@ while true do
end end
local name = fi:read(nlen) local name = fi:read(nlen)
local fsize = toint(fi:read(2)) local fsize = toint(fi:read(2))
io.write(string.format("%s: %d... ",name,fsize))
if not tArgs[2] then if not tArgs[2] then
local dir = name:match("(.+)/.*%.?.+") local dir = name:match("(.+)/.*%.?.+")
if (dir) then if (dir) then
@ -45,6 +46,6 @@ while true do
rsize = rsize - buf:len() rsize = rsize - buf:len()
until rsize <= 1 until rsize <= 1
end end
print(name,fsize) print(fsize)
end end
fi:close() fi:close()