This is documentation for Mathematica 4, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

DirectoryStackPath

ParentDirectory

FilledSmallSquareParentDirectory[ ] gives the parent of the current working directory.

FilledSmallSquareParentDirectory["dir"] gives the parent of the directory dir.

FilledSmallSquareParentDirectory returns the full name of the directory as a string.

FilledSmallSquareParentDirectory works only under operating systems which support hierarchical file systems.

FilledSmallSquare See The Mathematica Book: Section 2.11.4.

FilledSmallSquare See also: Directory, $HomeDirectory, DirectoryName.

DirectoryStackPath