This is documentation for Mathematica 5, 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 /


FilledSmallSquare ParentDirectory[ ] gives the parent of the current working directory.

FilledSmallSquare ParentDirectory["dir"] gives the parent of the directory dir.

FilledSmallSquare ParentDirectory returns the full name of the directory as a string.

FilledSmallSquare ParentDirectory works only under operating systems which support hierarchical file systems.

FilledSmallSquare See Section 2.12.4.

FilledSmallSquare See also: Directory, $HomeDirectory, DirectoryName.

FilledSmallSquare New in Version 2.