DirectoryStack

DirectoryStack[]
gives the directory stack that represents the sequence of current directories used.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

Setting directory pushes a directory onto the DirectoryStack[]:

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

Resetting directory pops a directory from the DirectoryStack[]:

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