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
AbstractSimpleDirectoryReader
Constructors
new SimpleDirectoryReader()
new SimpleDirectoryReader(
observer
?):SimpleDirectoryReader
Parameters
• observer?: ReaderCallback
Returns
Inherited from
AbstractSimpleDirectoryReader.constructor
Defined in
packages/readers/directory/dist/index.d.ts:18
Methods
loadData()
loadData(params)
Parameters
• params: SimpleDirectoryReaderLoadDataParams
Returns
Overrides
AbstractSimpleDirectoryReader.loadData
Defined in
packages/readers/directory/dist/index.d.ts:32
loadData(directoryPath)
Parameters
• directoryPath: string
Returns
Overrides
AbstractSimpleDirectoryReader.loadData
Defined in
packages/readers/directory/dist/index.d.ts:33