get_dirs: Collect directory paths

Description Usage Arguments Value Examples

Description

The get_dirs function addresses some of the quirks with list.files and uses defaults that are more useful for fduper, such as recursive = TRUE

Usage

1
2
get_dirs(path, pattern = NULL, all.dirs = TRUE, recursive = TRUE,
  ignore.case = FALSE)

Arguments

path

A character vector of path names to search

pattern

An optional regex pattern to match results against

all.dirs

Whether or not to include directories starting with period, with default as TRUE.

recursive

Whether or not to search path recursively, with default as TRUE

ignore.case

Whether or not to use case-sensitive pattern matching, with default as FALSE

Value

A character vector containing the resulting directory paths

Examples

1
2
get_dirs(sample_path(), recursive=TRUE)
get_dirs(sample_path(), recursive=FALSE)

gmyrland/fduper documentation built on May 28, 2019, 8:53 p.m.