This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
 Documentation / Mathematica / Built-in Functions / System Interface / File System  /

  • DirectoryStack[ ] gives the directory stack which represents the sequence of current directories used.
  • DirectoryStack[ ] returns a list of full names of directories.
  • Each call to SetDirectory prepends one element to the directory stack; each call to ResetDirectory drops one.
  • See the Mathematica book: Section 2.11.4.