Skip to main content

classify_documents

Function classify_documents 

Source
pub fn classify_documents(data_items: &[Data]) -> Vec<Document>
Expand description

Classify Data items into Documents based on file extension.

Mirrors the Python classify_documents function. DLT-sourced items are classified as DltRowDocument; all others use the extension-to-document-type mapping. Items with unrecognised extensions are silently skipped.