emacs-devel
[Top][All Lists]
Advanced

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

Re: Get directory name?


From: Stefan Monnier
Subject: Re: Get directory name?
Date: Wed, 27 Aug 2008 17:06:16 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

> 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

Not sure what "the last directory name from a directory path" means.
Do you mean

  (file-name-nondirectory (directory-file-name DIR))


-- Stefan




reply via email to

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