Gets the file names in the directory
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.
## Default S3 method: listDirectory(path=".", pattern=NULL, recursive=FALSE, allNames=FALSE, fullNames=FALSE, ...)
path |
A path to be listed. |
pattern |
A |
recursive |
If |
allNames |
If |
fullNames |
If |
... |
Not used. |
Returns a vector
of file names.
Recursive searching of directory structure is done breath-first in a lexicographic order.
Henrik Bengtsson
Internally list.files
() is used.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.