findFiles: Finds one or several files in multiple directories

Description Usage Arguments Value Paths Windows Shortcut links Author(s)

View source: R/findFiles.R

Description

Finds one or several files in multiple directories.

Usage

1
findFiles(pattern=NULL, paths=NULL, recursive=FALSE, firstOnly=TRUE, allFiles=TRUE, ...)

Arguments

pattern

A regular expression file name pattern to match.

paths

A character vector of paths to be searched.

recursive

If TRUE, the directory structure is searched breath-first, in lexicographic order.

firstOnly

If TRUE, the method returns as soon as a matching file is found, otherwise not.

allFiles

If FALSE, files and directories starting with a period will be skipped, otherwise not.

...

Arguments passed to list.files().

Value

Returns a vector of the full pathnames of the files found.

Paths

The paths argument may also contain paths specified as semi-colon (";") separated paths, e.g. "/usr/;usr/bin/;.;".

Windows Shortcut links

If package R.utils is available and loaded , Windows Shortcut links (*.lnk) are recognized and can be used to imitate links to directories elsewhere. For more details, see filePath.

Author(s)

Henrik Bengtsson


affxparser documentation built on Nov. 8, 2020, 7:26 p.m.