MCPcopy
hub / github.com/langgenius/dify / createTempDir

Function createTempDir

packages/dev-proxy/src/cli.spec.ts:24–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22const binPath = fileURLToPath(new URL('../bin/dev-proxy.js', import.meta.url))
23
24const createTempDir = async () => {
25 const tempDir = await fs.mkdtemp(path.join(os.tmpdir(), 'dev-proxy-cli-test-'))
26 tempDirs.push(tempDir)
27 return tempDir
28}
29
30const getFreePort = async () => {
31 const server = net.createServer()

Callers 1

cli.spec.tsFile · 0.70

Calls 2

joinMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected