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

  • ParentDirectory[ ] gives the parent of the current working directory.
  • ParentDirectory[" dir "] gives the parent of the directory dir.
  • ParentDirectory returns the full name of the directory as a string.
  • ParentDirectory works only under operating systems which support hierarchical file systems.
  • See the Mathematica book: Section 2.11.4.
  • See also: Directory, $HomeDirectory, DirectoryName.