Skip to main content

read_document

Function read_document 

Source
pub fn read_document(corpus: &CorpusRoot, path: &str) -> Result<String>
Expand description

Read a whole file (bounded by max_file_bytes) as UTF-8 (lossy), resolving the path through the corpus jail.