emacs-devel
[Top][All Lists]
Advanced

[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:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

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]