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 outputconfig.format
: selects the format of the output, seeconfig::OutputFormat
log
: used for drawing a progress bar to standard errorgroups
: list of groups of files to print, e.g. obtained fromgroup_files
Errors
Returns io::Error
on I/O write error or if the output file cannot be created.