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

Method detectFormat

src/services/import/types.ts:123–123  ·  view source on GitHub ↗

检测文件格式

(file: File | string)

Source from the content-addressed store, hash-verified

121
122 /** 检测文件格式 */
123 detectFormat(file: File | string): Promise<FormatInfo | null>
124
125 /** 扫描包含多个聊天的文件 */
126 scanMultiChatFile(file: File | string): Promise<MultiChatEntry[]>

Callers 1

detectFormatMethod · 0.65

Implementers 2

ElectronImportAdaptersrc/services/import/electron.ts
FetchImportAdaptersrc/services/import/fetch.ts

Calls

no outgoing calls

Tested by

no test coverage detected