Skip to main content

read_files_v2

Function read_files_v2 

Source
pub fn read_files_v2<D: Decimal, F: FnMut(Entry<D>)>(
    files: impl IntoIterator<Item = PathBuf>,
    on_entry: F,
) -> Result<(), ReadFileErrorV2>
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