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

Function resolveFilePath

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

Source from the content-addressed store, hash-verified

17} from './types'
18
19function resolveFilePath(file: File | string): string | null {
20 if (typeof file === 'string') return file
21 return (window as any).electron?.webUtils?.getPathForFile?.(file) ?? null
22}
23
24export class ElectronImportAdapter implements ImportAdapter {
25 async importFile(

Callers 6

importFileMethod · 0.85
detectFormatMethod · 0.85
scanMultiChatFileMethod · 0.85
prepareImportSourceMethod · 0.85
incrementalImportMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected