get_file_duplicates: Get list of paths containing files of the same name

View source: R/stats.R

get_file_duplicatesR Documentation

Get list of paths containing files of the same name

Description

Get list of paths containing files of the same name

Usage

get_file_duplicates(paths, pattern, ...)

Arguments

paths

vector of character representing full file paths

pattern

paths is matched against this pattern before the matching paths are split and analysed for duplicated files

...

arguments passed to grep, e.g. ignore.case

Examples

paths <- c("/a/b/c.exe", "/a/b/d.exe", "/A/B/c.exe", "/A/B/d.exe")
get_file_duplicates(paths, pattern = "\\.exe$")


KWB-R/kwb.fakin documentation built on June 14, 2022, 2 p.m.