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


7.2.3.2 file-name-directory

Function: file-name-directory filename

This function returns the directory component of a file name. Given a Unix syntax file name, it returns a string ending in slash (‘/’).

FILENAME

a file name (path)

RETURN VALUE

the directory component (directory name) from FILENAME (path);

nil if FILENAME does not include a directory.