Skip to contents

This function scans two folders and identifies files that exist only in one setup or files with differences between setups. The function requires the diffr package to be installed.

Usage

find_dif(
  path1,
  path2,
  name1 = "Setup 1",
  name2 = "Setup2",
  remove_pattern = NULL
)

Arguments

path1

Path to the first setup.

path2

Path to the second setup.

name1

Character for name for the first setup (default is name1 = Setup 1).

name2

Character for name for the second setup (default is name2 = Setup 2).

remove_pattern

Regex pattern for files to be removed. Default is remove_pattern = NULL, which means pattern removes file types: txt, zip, fin, out, exe, bak, mgts, farm, sqlite, swf, sch, hmd, wnd, pcp, slr, tmp. Example for excluding only txt files remove_pattern <- '.*.txt'. Other can be added using | operator.

Value

A list containing differences between files if found, otherwise a message indicating no differences.