From 0a4004a9abf0b4322a120d3a381ac1f018755063 Mon Sep 17 00:00:00 2001 From: Daniel Arroyo Date: Mon, 6 Jul 2026 10:31:57 -0400 Subject: [PATCH] fix: show permissions as drwxr-x/755 instead of drwxr-x755 for clarity --- web/src/pages/Files.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/pages/Files.tsx b/web/src/pages/Files.tsx index 7eff375..719e0d7 100644 --- a/web/src/pages/Files.tsx +++ b/web/src/pages/Files.tsx @@ -23,9 +23,9 @@ function FileIcon({ name }: { name: string }) { function modeStr(mode: number): string { const perm = (mode & 0o777).toString(8).padStart(3, "0"); const type = mode & 0o170000; - if (type === 0o40000) return `drwxr-xr-x`.slice(0, 10 - perm.length) + perm; - if (type === 0o120000) return `lrwxr-xr-x`.slice(0, 10 - perm.length) + perm; - return `-rwxr-xr-x`.slice(0, 10 - perm.length) + perm; + if (type === 0o40000) return `drwxr-xr-x/${perm}`; + if (type === 0o120000) return `lrwxr-xr-x/${perm}`; + return `-rwxr-xr-x/${perm}`; } export default function Files() {