Skip to contents

This function creates directories at the specified paths. If the parents argument is set to TRUE, it creates parent directories as needed. Similar to Python's pathlib.Path.mkdir() method.

Usage

Path_mkdir(paths, parents = FALSE)

Arguments

paths

A character vector of directory paths to create.

parents

Logical. If TRUE, create parent directories as needed.

Examples

if (FALSE) {
Path_mkdir("new_directory")
}