MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / detectFormat

Method detectFormat

src/services/import/electron.ts:69–75  ·  view source on GitHub ↗
(file: File | string)

Source from the content-addressed store, hash-verified

67 }
68
69 async detectFormat(file: File | string): Promise<FormatInfo | null> {
70 const filePath = resolveFilePath(file)
71 if (!filePath) return null
72 const result = await window.chatApi.detectFormat(filePath)
73 if (!result) return null
74 return { ...result, extensions: (result as any).extensions ?? [] }
75 }
76
77 async scanMultiChatFile(file: File | string): Promise<MultiChatEntry[]> {
78 const filePath = resolveFilePath(file)

Callers

nothing calls this directly

Calls 2

resolveFilePathFunction · 0.85
detectFormatMethod · 0.65

Tested by

no test coverage detected