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

DirectoryName

DirectoryName["name"]
extracts the directory name from the specification for a file.
  • If name contains no directory specification, DirectoryName["name"] returns "".
New in 3