improved output for unarchive

This commit is contained in:
Izaya 2019-07-22 13:36:42 +10:00
rodzic 33477c7528
commit b68f1ad9e1
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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()