Skip to main content

read_files_to_vec

Function read_files_to_vec 

Source
pub fn read_files_to_vec<D: Decimal>(
    files: impl IntoIterator<Item = PathBuf>,
) -> Result<Vec<Entry<D>>, ReadFileErrorV2>
Expand description

Read the files from disk and parse their content. Returns a Vec of each entries found.

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