Skip to contents

Test if a path is a directory

Usage

is_directory(x)

Arguments

x

<chr> directory path to check

Value

named <lgl> vector, where the names give the paths. If the given object does not exist, NA is returned.

Examples

is_directory("C:/")
#>   C:/ 
#> FALSE