MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / makeTempDir

Function makeTempDir

apps/desktop/src/main/vault.perf.test.ts:20–24  ·  view source on GitHub ↗
(prefix: string)

Source from the content-addressed store, hash-verified

18const tempDirs: string[] = []
19
20async function makeTempDir(prefix: string): Promise<string> {
21 const dir = await mkdtemp(path.join(os.tmpdir(), prefix))
22 tempDirs.push(dir)
23 return dir
24}
25
26afterAll(async () => {
27 await Promise.all(tempDirs.splice(0).map((dir) => rm(dir, { recursive: true, force: true })))

Callers 1

vault.perf.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected