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

Function tempDir

apps/local/src/db/db-file-permissions.test.ts:32–36  ·  view source on GitHub ↗
(label: string)

Source from the content-addressed store, hash-verified

30 existsSync(path) ? statSync(path).mode & 0o777 : null;
31
32const tempDir = (label: string): string => {
33 const dir = mkdtempSync(join(tmpdir(), `executor-db-perms-${label}-`));
34 dirs.push(dir);
35 return dir;
36};
37
38/** Every file in `dir` that any account other than the owner can read. */
39const groupOrWorldReadable = (dir: string): readonly string[] =>

Callers 1

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected