[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Get directory name?

From: Lennart Borgman (gmail)
Subject: Get directory name?
Date: Wed, 27 Aug 2008 22:38:46 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20071031 Thunderbird/ Mnenhy/

I can't find a good way to get the last directory name from a directory
path using the current functions for file name handling. There must be
some way ...?

file-name-nondirectory does not work for a directory path (or, rather it
returns "" which is not what I want). Maybe there should be a

(defun  directory-last-name (directory)
  "Returns the last name in a directory path.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]