(Windows only) Same as list.files
but much faster.
Present since v1.4.0.
dir2(
path = ".",
file_ext = NULL,
full.names = TRUE,
recursive = TRUE,
pattern = NULL,
fixed = FALSE,
perl = TRUE && missing(fixed) && !fixed,
ignore.case = FALSE,
invert = FALSE,
.dont_use = FALSE
)
A string representing the trunk path to search within.
A string like `*.txt` or `.csv` to limit the result to files with that extension.
TRUE
by default.
TRUE
by default.
As in grep
but with different defaults.
Used to filter files with extension file_ext
.
Only used for tests to simulate non-Windows systems.
The same as list.files
, a character vector of files sought.