Learn R Programming

icesTAF (version 3.6.0)

mkdir: Create Directory

Description

Create directory, including parent directories if necessary, without generating a warning if the directory already exists.

Usage

mkdir(path)

Value

TRUE for success, FALSE for failure, invisibly.

Arguments

path

a directory name.

See Also

dir.create is the base function to create a new directory.

rmdir removes an empty directory.

clean can be used to remove non-empty directories.

icesTAF-package gives an overview of the package.

Examples

Run this code
if (FALSE) {
mkdir("emptydir")
rmdir("emptydir")

mkdir("outer/inner")
rmdir("outer", recursive=TRUE)
}

Run the code above in your browser using DataLab