Class: SimpleDirectoryReader
Read all of the documents in a directory. By default, supports the list of file types in the FILE_EXT_TO_READER map.
Implements
Constructors
constructor
• new SimpleDirectoryReader(observer?
)
Parameters
Name | Type |
---|---|
observer? | ReaderCallback |
Defined in
packages/core/src/readers/SimpleDirectoryReader.ts:65
Properties
observer
• Private
Optional
observer: ReaderCallback
Defined in
packages/core/src/readers/SimpleDirectoryReader.ts:65
Methods
doObserverCheck
▸ Private
doObserverCheck(category
, name
, status
, message?
): boolean
Parameters
Name | Type |
---|---|
category | "file" | "directory" |
name | string |
status | ReaderStatus |
message? | string |
Returns
boolean
Defined in
packages/core/src/readers/SimpleDirectoryReader.ts:135
loadData
▸ loadData(«destructured»
): Promise
<Document
<Metadata
>[]>
Parameters
Name | Type |
---|---|
«destructured» | SimpleDirectoryReaderLoadDataProps |