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


7.2.3.10 file-name-absolute-p

This function tests whether a file name is absolute. Given a possibly relative file name, you can expand any leading ‘~’ and convert the result to an absolute name using expand-file-name.

Function: file-name-absolute-p filename
FILENAME

the file name to test

RETURN VALUE

returns t if FILENAME is an absolute file name or begins with ‘~’; returns nil if not.