This commit is contained in:
Raven Scott
2026-04-03 20:46:09 -04:00
parent e58a9f99d6
commit 2655fe6a7d
293 changed files with 16784 additions and 7960 deletions
+1 -2
View File
@@ -6,8 +6,7 @@ function bareStdin(ctx) {
/** @param {number} mode @param {'file' | 'directory' | 'symlink'} type */
function bareFormatModeString(mode, type) {
const typeChar =
type === 'directory' ? 'd' : type === 'symlink' ? 'l' : '-'
const typeChar = type === 'directory' ? 'd' : type === 'symlink' ? 'l' : '-'
const perm = mode & 0o777
const r = (bit) => (perm & bit ? 'r' : '-')
const w = (bit) => (perm & bit ? 'w' : '-')