Skip to contents

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

Usage

Path_is_file(paths)

Arguments

paths

A character vector of file paths.

Value

A logical vector indicating whether each path is a regular file.

Examples

if (FALSE) {
Path_is_file("file.txt")
}