isFile

0th

Percentile

Checks if the file specification is a file

Checks if the file specification is a file.

Keywords
programming, IO
Usage
## S3 method for class 'default':
isFile(pathname, ...)
Arguments
pathname
A character string of the pathname to be checked.
...
Not used.
Value

  • Returns TRUE if the file specification is a file, otherwise FALSE is returned.

See Also

To check if it is a directory see isDirectory(). Internally file.info() is used. See also file_test.

Aliases
  • isFile.default
  • isFile
Documentation reproduced from package R.utils, version 1.28.4, License: LGPL (>= 2.1)

Community examples

Looks like there are no examples yet.