CreateDirectory

CreateDirectory["dir"]

creates a directory with name dir.

CreateDirectory[]

creates a directory in the default area for temporary directories on your computer system.

Details and Options

Examples

open allclose all

Basic Examples  (1)

Create a directory:

Check the presence of the new directory:

Delete the directory:

The directory is no longer there:

Scope  (1)

Create a directory specified as a File object:

Possible Issues  (1)

CreateDirectory using a path name specified by a string does not create a CloudObject when evaluated in the cloud:

There is no cloud object:

Use CloudObject instead when creating directories:

Now the CloudObject directory exists:

Introduced in 1991
 (2.0)
 |
Updated in 2016
 (11.0)