Function ferru::document::load_documents_from_disk
[−]
[src]
pub fn load_documents_from_disk<F>(
documents_path: &Path,
criteria: F
) -> Result<BTreeMap<PathBuf, Document>> where
F: FnMut(&Path) -> bool,
Recursively traverses the specified directory and loads the all files matching the specified criteria as document files.