improved output for unarchive
This commit is contained in:
parent
33477c7528
commit
b68f1ad9e1
@ -23,6 +23,7 @@ while true do
|
||||
end
|
||||
local name = fi:read(nlen)
|
||||
local fsize = toint(fi:read(2))
|
||||
io.write(string.format("%s: %d... ",name,fsize))
|
||||
if not tArgs[2] then
|
||||
local dir = name:match("(.+)/.*%.?.+")
|
||||
if (dir) then
|
||||
@ -45,6 +46,6 @@ while true do
|
||||
rsize = rsize - buf:len()
|
||||
until rsize <= 1
|
||||
end
|
||||
print(name,fsize)
|
||||
print(fsize)
|
||||
end
|
||||
fi:close()
|
||||
|
Loading…
Reference in New Issue
Block a user