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

Function getTempFilePath

apps/desktop/main/api/routes/import.ts:73–76  ·  view source on GitHub ↗
(ext: string)

Source from the content-addressed store, hash-verified

71}
72
73function getTempFilePath(ext: string): string {
74 const id = crypto.randomBytes(8).toString('hex')
75 return path.join(getTempDir(), `api-import-${id}${ext}`)
76}
77
78function cleanupTempFile(filePath: string): void {
79 try {

Callers 1

writeTempFileFunction · 0.70

Calls 1

getTempDirFunction · 0.90

Tested by

no test coverage detected