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
Inherited from
EdgeSimpleDirectoryReader.constructor
Source
packages/core/src/readers/SimpleDirectoryReader.edge.ts:43
Methods
loadData()
loadData(params)
Parameters
• params: SimpleDirectoryReaderLoadDataParams
Returns
Promise
<Document
<Metadata
>[]>
Overrides
EdgeSimpleDirectoryReader.loadData
Source
packages/core/src/readers/SimpleDirectoryReader.ts:35
loadData(directoryPath)
Parameters
• directoryPath: string
Returns
Promise
<Document
<Metadata
>[]>
Overrides
EdgeSimpleDirectoryReader.loadData