Finds one or several files in multiple directories
Finds one or several files in multiple directories.
## S3 method for class 'default': findFiles(pattern=NULL, paths=NULL, recursive=FALSE, firstOnly=TRUE, allFiles=TRUE, ...)
- A regular expression file name pattern to match.
vectorof paths to be searched.
TRUE, subdirectories are recursively processed, and not if
FALSE. Alternatively, the maximum recursive depth can be specified as
TRUE, the method returns as soon as a matching file is found, otherwise not.
FALSE, files and directories starting with a period will be skipped, otherwise not.
- Arguments passed to
- Returns a
vectorof the full pathnames of the files found.
paths argument may also contain paths specified as
";") separated paths, e.g.
Recursive searching of directory structure is done breath-first in a lexicographic order.
Windows Shortcut links
Windows Shortcut links (*.lnk) are recognized and can be used
to immitate links to directories elsewhere.
For more details, see