'use strict' module.exports = (mode, isDir) => { mode &= 0o7777 // if dirs are readable, then they should be listable if (isDir) { if (mode & 0o400) mode |= 0o100 if (mode & 0o40) mode |= 0o10 if (mode & 0o4) mode |= 0o1 } return mode }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
buffer.js | File | 283 B | 0644 |
|
create.js | File | 2.32 KB | 0644 |
|
extract.js | File | 2.76 KB | 0644 |
|
header.js | File | 8.83 KB | 0644 |
|
high-level-opt.js | File | 772 B | 0644 |
|
large-numbers.js | File | 2.16 KB | 0644 |
|
list.js | File | 3.08 KB | 0644 |
|
mkdir.js | File | 5.06 KB | 0644 |
|
mode-fix.js | File | 277 B | 0644 |
|
pack.js | File | 9.39 KB | 0644 |
|
parse.js | File | 11.86 KB | 0644 |
|
pax.js | File | 3.97 KB | 0644 |
|
read-entry.js | File | 2.61 KB | 0644 |
|
replace.js | File | 5.36 KB | 0644 |
|
types.js | File | 1.07 KB | 0644 |
|
unpack.js | File | 16.46 KB | 0644 |
|
update.js | File | 852 B | 0644 |
|
warn-mixin.js | File | 309 B | 0644 |
|
winchars.js | File | 533 B | 0644 |
|
write-entry.js | File | 11.77 KB | 0644 |
|