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

Method importDirectory

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

导入目录(多文件格式如 chunked-jsonl)。Electron 传目录路径,Web 传 File[](含 webkitRelativePath)

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

Source from the content-addressed store, hash-verified

152
153 /** 导入目录(多文件格式如 chunked-jsonl)。Electron 传目录路径,Web 传 File[](含 webkitRelativePath) */
154 importDirectory(
155 source: File[] | string,
156 options?: ImportOptions,
157 onProgress?: (p: ImportProgress) => void

Callers 1

importDirectoryMethod · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by

no test coverage detected