Class FileSystemDocumentLoaderExtensionsKt
-
- All Implemented Interfaces:
public final class FileSystemDocumentLoaderExtensionsKt
-
-
Method Summary
Modifier and Type Method Description final static List<Document>loadDocuments(List<Path> directoryPaths, DocumentParser documentParser, Boolean recursive, PathMatcher pathMatcher, CoroutineContext context)Asynchronously loads documents from the specified directories. -
-
Method Detail
-
loadDocuments
final static List<Document> loadDocuments(List<Path> directoryPaths, DocumentParser documentParser, Boolean recursive, PathMatcher pathMatcher, CoroutineContext context)
Asynchronously loads documents from the specified directories.
- Parameters:
directoryPaths- A list of directories from which documents should be loaded.documentParser- The parser to convert files into Document objects.recursive- Determines whether subdirectories should also be searched for documents.pathMatcher- An optional filter to match file paths against specific patterns.context- The CoroutineContext to be used for asynchronous operations.- Returns:
A list of Document objects representing the loaded documents.
-
-
-
-