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  /
Directory

  • Directory[ ] gives the current working directory.
  • Directory returns the full name of the directory as a string.
  • See the Mathematica book: Section 1.11.2Section 2.11.4.
  • See also: $Path, SetDirectory, ResetDirectory, ParentDirectory, $HomeDirectory, DirectoryName, FileNames.