Learn R Programming

syncdr (version 0.1.1)

compare_file_contents: Compare contents of two files and determine synchronization status

Description

This function compares the contents of two files located at specified paths and determines their synchronization status based on their content

Usage

compare_file_contents(
  path_left,
  path_right,
  verbose = getOption("syncdr.verbose")
)

Value

A list containing the following components:

is_diff

Logical. Indicates whether the contents of the two files are different (TRUE) or identical (FALSE).

sync_status_content

Character. Describes the synchronization status between the two files based on their content: - "different content": Contents of the files are not identical. - "same content": Contents of the files are identical.

Arguments

path_left

A character string specifying the path to the file in the left directory.

path_right

A character string specifying the path to the file in the right directory.

verbose

logical; if TRUE display progress status of hashing files' contents, in seconds. Default is FALSE