Learn R Programming

mark (version 0.8.1)

is_dir: Is File/Directory

Description

Is the path a file/directory?

Usage

is_dir(x)

is_file(x)

Value

A logical vector

Arguments

x

A vector of file paths

Details

These are essentially taken from utils::file_test() for op = '-d' and op = -f but separated.