Ana içeriğe geç

Class: SimpleDirectoryReader

Read all the documents in a directory. By default, supports the list of file types in the FILE_EXT_TO_READER map.

Extends

  • SimpleDirectoryReader

Constructors

new SimpleDirectoryReader()

new SimpleDirectoryReader(observer?): SimpleDirectoryReader

Parameters

observer?: ReaderCallback

Returns

SimpleDirectoryReader

Inherited from

EdgeSimpleDirectoryReader.constructor

Source

packages/core/src/readers/SimpleDirectoryReader.edge.ts:41

Methods

loadData()

loadData(params)

loadData(params): Promise <Document <Metadata>[]>

Parameters

params: SimpleDirectoryReaderLoadDataParams

Returns

Promise <Document <Metadata>[]>

Overrides

EdgeSimpleDirectoryReader.loadData

Source

packages/core/src/readers/SimpleDirectoryReader.ts:35

loadData(directoryPath)

loadData(directoryPath): Promise <Document <Metadata>[]>

Parameters

directoryPath: string

Returns

Promise <Document <Metadata>[]>

Overrides

EdgeSimpleDirectoryReader.loadData

Source

packages/core/src/readers/SimpleDirectoryReader.ts:38