BUILT-IN MATHEMATICA SYMBOL

CreateIntermediateDirectories

CreateIntermediateDirectories
is an option for CreateDirectory and related functions that specifies whether to create intermediate directories in a directory path specified.

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

Create a subdirectory in a directory:

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

Create a directory and a subdirectory as needed:

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

Check the presence of the new directory:

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

Delete the directory:

In[5]:=
Click for copyable input

The directory is no longer there:

In[6]:=
Click for copyable input
Out[6]=
New in 6
New to Mathematica? Find your learning path »
Have a question? Ask support »