From d5595135cd919881edef0f15d744c21d1935deb7 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Tue, 7 Jan 2025 18:48:23 +0000 Subject: [PATCH] chore(examples): add attributes to dir structure print --- examples/tour.luau | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/tour.luau b/examples/tour.luau index e085425..0914fae 100644 --- a/examples/tour.luau +++ b/examples/tour.luau @@ -8,9 +8,9 @@ print("Directory structure:") reader:walk(function(entry, depth) local prefix = string.rep(" ", depth) local suffix = if not entry.isDirectory - then string.format(" (%d bytes), content: %s", entry.size, reader:extract(entry, { isString = true }) :: string) + then string.format(" (%d bytes), attrs: 0x%x, content: %s", entry.size, entry.attributes, reader:extract(entry, { isString = true }) :: string) else "" - print(prefix .. entry.name .. suffix) + print(prefix .. entry:getPath() .. suffix) end) print("\Children of `/`:")