Function read_files

Source
pub fn read_files<D: Decimal, F: FnMut(Entry<D>)>(
    files: impl IntoIterator<Item = PathBuf>,
    on_entry: F,
) -> Result<(), ReadFileError>
Expand description

Read the files from disk and parse their content.

It follows the include directives found.

ยงErrors

Returns an error if any file could not be read (IO error) or if there is a beancount syntax error in any file read