listDirectory {R.utils} | R Documentation |
Gets the file names in the directory
Description
Gets the file names in the directory.
Contrary to list.files()
, this method guarantees to work
recursively. Moreover, when subdirectories are processed recursively,
directory names are also returned.
Usage
## Default S3 method:
listDirectory(path=".", pattern=NULL, recursive=FALSE, allNames=FALSE, fullNames=FALSE,
...)
Arguments
path |
A path to be listed. |
pattern |
A |
recursive |
If |
allNames |
If |
fullNames |
If |
... |
Not used. |
Value
Returns a vector
of file names.
Recursive searching
Recursive searching of directory structure is done breath-first in a lexicographic order.
Author(s)
Henrik Bengtsson
See Also
Internally list.files
() is used.