mirror of
https://github.com/0x5eal/luau-unzip.git
synced 2025-04-10 17:20:53 +01:00
chore(examples): improve contents listing with indent
This commit is contained in:
parent
895cd63fee
commit
023fb2bfd7
1 changed files with 2 additions and 2 deletions
|
@ -16,10 +16,10 @@ end)
|
||||||
print("\nContents of `/`:")
|
print("\nContents of `/`:")
|
||||||
local assets = reader:listDirectory("/")
|
local assets = reader:listDirectory("/")
|
||||||
for _, entry in assets do
|
for _, entry in assets do
|
||||||
print(entry.name, if entry.isDirectory then "DIR" else entry.size)
|
print(" ->", entry.name, if entry.isDirectory then "DIR" else entry.size)
|
||||||
if not entry.isDirectory then
|
if not entry.isDirectory then
|
||||||
local extracted = reader:extract(entry, { isString = true })
|
local extracted = reader:extract(entry, { isString = true })
|
||||||
print("Content:", extracted)
|
print(" -> Content:", extracted)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue