MCPcopy Create free account
hub / github.com/Snapchat/Valdi / makeTempDir

Function makeTempDir

npm_modules/cli/src/utils/tempDir.ts:6–8  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import path from 'path';
5
6export function makeTempDir(): string {
7 return path.join(os.tmpdir(), crypto.randomUUID());
8}
9
10export async function withTempDir<T>(receiveTempDir: (tempDir: string) => Promise<T>): Promise<T> {
11 const tempDir = makeTempDir();

Callers 1

withTempDirFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected