Next: , Previous: , Up: Directory and File Variables and Functions   [Index]


7.2.3.7 directory-file-name

This function returns a string representing dirname in a form that the operating system will interpret as the name of a file (a directory file name). In general, it will return a name without a trailing slash.

This operation exists because a directory is also a file, but its name as a directory is different from its name as a file.

Function: directory-file-name directory
DIRECTORY

a directory to process; obtain its file name; in Unix-syntax, this function just removes the final slash.

RETURN VALUE

the file name of the directory named DIRECTORY (its directory file name).