Skip to main content

import

Function import 

Source
pub fn import(
    dirs: &Dirs,
    path: &Path,
    source: Option<&str>,
) -> Result<Imported, LearnError>
Expand description

Imports a file of outside material (JSON lines, gzipped or not): each source it names replaces what was kept before under that name. A line’s own source first, else source, else the file’s name.