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


7.2.3.11 file-relative-name

Convert an absolute file name to a relative file name in relation to a directory.

Function: file-relative-name filename &optional directory
FILENAME

a file name upon which to operate to convert it to be relative to DIRECTORY, which defaults to default-directory.

DIRECTORY

a directory to act as a reference for this function;

RETURN VALUE

a relative file name which is equivalent to FILENAME in combination with DIRECTORY.