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

Method importFile

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

* 导入文件。Electron 接受 File 或文件路径,Web 只接受 File。

(
    file: File | string,
    options?: ImportOptions,
    onProgress?: (p: ImportProgress) => void
  )

Source from the content-addressed store, hash-verified

114 * 导入文件。Electron 接受 File 或文件路径,Web 只接受 File。
115 */
116 importFile(
117 file: File | string,
118 options?: ImportOptions,
119 onProgress?: (p: ImportProgress) => void

Callers 2

importFileFromPathFunction · 0.65
importFilesFromPathsFunction · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by

no test coverage detected