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

Function makeWorkDir

apps/local/src/db/owned-database.test.ts:36–37  ·  view source on GitHub ↗
(prefix: string)

Source from the content-addressed store, hash-verified

34 });
35
36const makeWorkDir = (prefix: string): string =>
37 mkdtempSync(join(tmpdir(), `executor-owned-database-${prefix}-`));
38
39// data.db exists only after the sole owner opens it, so it is the witness that a
40// non-owner never wrote anything: an ownership loser must fail before any DB I/O.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected