MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / getTempFilePath

Function getTempFilePath

apps/cli/src/sync/adapters.ts:20–23  ·  view source on GitHub ↗
(ext: string)

Source from the content-addressed store, hash-verified

18import { streamImport, incrementalImport } from '../import/stream-import'
19
20function getTempFilePath(ext: string): string {
21 const id = crypto.randomBytes(8).toString('hex')
22 return path.join(os.tmpdir(), `chatlab-pull-${id}${ext}`)
23}
24
25// ==================== NodeFetcher ====================
26

Callers 1

fetchToTempFileMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected