Skip to contents

This function checks if the specified paths are directories and returns a logical vector indicating the result. Similar to Python's pathlib.Path.is_dir() method.

Usage

Path_is_dir(paths)

Arguments

paths

A character vector of file paths.

Value

A logical vector indicating whether each path is a directory.

Examples

if (FALSE) {
Path_is_dir("directory")
}