(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)
path | A string representing the trunk path to search within. |
---|---|
file_ext | A string like `*.txt` or `.csv` to limit the result to files with that extension. |
full.names |
|
recursive |
|
pattern, perl, ignore.case, fixed, invert | As in |
.dont_use | Only used for tests to simulate non-Windows systems. |
The same as list.files
, a character vector of files sought.