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:

In[1]:=
Click for copyable input
Out[1]=

Check the presence of the new directory:

In[2]:=
Click for copyable input
Out[2]=

Delete the directory:

In[3]:=
Click for copyable input

The directory is no longer there:

In[4]:=
Click for copyable input
Out[4]=

Scope  (1)

See Also

DeleteDirectory  RenameDirectory  CopyDirectory  CreateFile

Tutorials

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