Function fclones::write_report[][src]

pub fn write_report(
    config: &GroupConfig,
    log: &Log,
    groups: &[FileGroup<Path>]
) -> Result<()>
Expand description

Writes the list of groups to a file or the standard output.

Parameters

  • config.output: a path to the output file, None for standard output
  • config.format: selects the format of the output, see config::OutputFormat
  • log: used for drawing a progress bar to standard error
  • groups: list of groups of files to print, e.g. obtained from group_files

Errors

Returns io::Error on I/O write error or if the output file cannot be created.