Next: Directory and File Variables and Functions, Previous: File Name Components, Up: Directories and File Names [Index]
A directory name is a string that must name a directory if it names any file at all.
A directory is actually a kind of file, and it has a file name (called the directory file name , which is related to the directory name but is typically not identical, e.g., it will not have a trailing slash.
These two names for the same entity are related by a syntactic transformation:
directory name = directory file name + /
The difference between a directory name and a directory file name is subtle but crucial:
file-name-directory
returns a string, that is always a directory
name.