Skip to contents

Is the path a file/directory?

Usage

is_dir(x)

is_file(x)

Arguments

x

A vector of file paths

Value

A logical vector

Details

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