listDirectory

0th

Percentile

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.

Usage
## S3 method for class 'default}(pathname, pattern=NULL, recursive=FALSE, allNames=FALSE, fullNames=FALSE, ...)':
listDirectoryundefined

pathname{A pathname to be listed.}
  pattern{A character string of the filename pattern passed. See
   list.files() for more details.}
  recursive{If TRUE, subdirectories are recursively processed,
   otherwise not.}
  allNames{If TRUE, also files starting with a period are returned.}
  fullNames{If TRUE, the full path names are returned.}
  ...{Not used.}

Returns a vector of file names.

[object Object]

Internally list.files() is used.



IO
programming
Aliases
  • listDirectory.default
  • listDirectory
Documentation reproduced from package R.utils, version 0.7.9, License: LGPL version 2.1 or newer (the releases)

Community examples

Looks like there are no examples yet.