Functions to test for file types

is_file(path)

is_dir(path)

is_link(path)

## Arguments

path A character vector of one or more paths.

## Value

A named logical vector, where the names give the paths. If the given object does not exist, NA is returned.

file_exists(), dir_exists() and link_exists() if you want to ensure that the path also exists.

## Examples

dir_create("d")

file_create("d/file.txt")
dir_create("d/dir")
dir_delete("d")