dirDiff: Directory Diff

View source: R/FolderAndFiles.R

dirDiffR Documentation

Directory Diff

Description

Get a diff between a master and a copy directories, i.e. list files and folders that have been added, removed, sized-changed or os-modified in the last X hours.

Usage

dirDiff(master.dir, copy.dir, hours = 24, fileOnly = TRUE)

Arguments

master.dir

character string, master directory

copy.dir

character string, copy directory

hours

numeric, modificaton time span

fileOnly

logical, list only files or subfolders as well?

Value

A list with the following fields:

  1. new, list of new files (in master but not in copy)

  2. removed, list of removed files (in copy but not in master)

  3. sizeChanged, list of size-changed files (in both copy and master but with different sizes)

  4. modified, list of modified files (according to OS-specific 'time of last modif', unclear what this does exactly...)

Examples

#

benRenard/BFunk documentation built on July 20, 2022, 7:07 a.m.