Skip to contents

This function searches for duplicate files within a directory based on their content. Duplicate files are identified by having either the same filename and same content or different filenames but same content.

Usage

search_duplicates(dir_path, verbose = TRUE)

Arguments

dir_path

A character string representing the path to the directory to search for duplicates

verbose

Logical. If TRUE, displays a list of duplicate files found (default is TRUE)

Value

A data frame containing information about duplicate files (invisible by default)

Examples

library(syncdr)
e = toy_dirs()
#> ■■■■■■■                           20% | ETA:  8s
#> ■■■■■■■■■■■■■■■■■                 53% | ETA:  6s
search_duplicates(dir_path = e$left)
#> 
#> ── Duplicates in /tmp/RtmpNpo9CP/left ──────────────────────────────────────────
#> */C/C1.Rds
#> */C/C1_duplicate.Rds