Learn R Programming

syncdr (version 0.1.1)

search_duplicates: Search for duplicate files in a directory

Description

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)

Value

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

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)

Examples

Run this code
# Search for duplicate files in a directory

# \donttest{
e <- toy_dirs()
search_duplicates(dir_path = e$left)
# }

Run the code above in your browser using DataLab