MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / modeOf

Function modeOf

apps/local/src/db/db-file-permissions.test.ts:29–30  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

27
28/** POSIX permission bits of `path`, or null when it does not exist. */
29const modeOf = (path: string): number | null =>
30 existsSync(path) ? statSync(path).mode & 0o777 : null;
31
32const tempDir = (label: string): string => {
33 const dir = mkdtempSync(join(tmpdir(), `executor-db-perms-${label}-`));

Callers 2

groupOrWorldReadableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected