MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / tmpDir

Function tmpDir

test/atomic-write.test.ts:9–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7
8const dirs: string[] = [];
9async function tmpDir(): Promise<string> {
10 const d = await fs.mkdtemp(path.join(os.tmpdir(), 'qx-atomic-'));
11 dirs.push(d);
12 return d;
13}
14afterEach(async () => {
15 while (dirs.length) await fs.rm(dirs.pop()!, { recursive: true, force: true }).catch(() => {});
16});

Callers 1

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected