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

Function getTempFilePath

apps/desktop/main/api/adapters.ts:21–24  ·  view source on GitHub ↗
(ext: string)

Source from the content-addressed store, hash-verified

19import { buildPullUrl, NOOP_LOGGER } from '@openchatlab/sync'
20
21function getTempFilePath(ext: string): string {
22 const id = crypto.randomBytes(8).toString('hex')
23 return path.join(getTempDir(), `pull-import-${id}${ext}`)
24}
25
26// ==================== ElectronFetcher ====================
27

Callers 1

fetchToTempFileMethod · 0.70

Calls 1

getTempDirFunction · 0.90

Tested by

no test coverage detected