pub fn compare_folders_cfg(
    nominal: impl AsRef<Path>,
    actual: impl AsRef<Path>,
    config_struct: ConfigurationFile,
    report_path: impl AsRef<Path>
) -> Result<bool, Error>
Expand description

Use this function if you don’t want this crate to load and parse a config file but provide a custom rules struct yourself

Examples found in repository?
src/lib.rs (line 283)
275
276
277
278
279
280
281
282
283
284
pub fn compare_folders(
    nominal: impl AsRef<Path>,
    actual: impl AsRef<Path>,
    config_file: impl AsRef<Path>,
    report_path: impl AsRef<Path>,
) -> Result<bool, Error> {
    let config_reader = fat_io_wrap_std(config_file, &File::open)?;
    let config: ConfigurationFile = serde_yaml::from_reader(config_reader)?;
    compare_folders_cfg(nominal, actual, config, report_path)
}