gnu_find: Wrapper around GNU Find CLI utility.

Description Usage Arguments Details Value Examples

View source: R/main.R

Description

It's designed so that arguments are just passed in order much like the GNU Find utility itself.

Usage

1
gnu_find(search_path = getwd(), ..., exec = "find", debug = FALSE)

Arguments

search_path

Character path names.

...

Arguments to find.

exec

Character(1) path to GNU Find executable.

debug

Logical(1) whether to print generated command.

Details

Hopefully this will be somewhat useful to someone.

There are two special kinds of argument names that may be repeated:

- switch (sw) :: switches which don't have arguments - compound (cmp) :: compound statements

These enable this wrapper to handle the a broader chunch of the Find utilities functionality.

Please refer the GNU Find INFO pages for more details.

Value

Character.

Examples

1
2
3
4
# Find all non-hidden directories in $HOME.
gnu_find(search_path = "~",
         type = "d", maxdepth = 1,
         compound = not(path = "*/\\.*"))

wdkrnls/gnufind documentation built on May 13, 2019, 9:53 p.m.