|
From: | Thierry Volpiatto |
Subject: | Re: how having the basename of a file or directory |
Date: | Mon, 31 Jan 2011 12:03:14 +0100 |
User-agent: | Gnus/5.110011 (No Gnus v0.11) Emacs/23.2.92 (gnu/linux) |
Andreas Schwab <address@hidden> writes: > Thierry Volpiatto <address@hidden> writes: > >> (file-name-nondirectory "path/to/a/directory") >> should return ==> directory > > It does. Not really. It does if PATH doesn't end with "/" otherwise no, it's why (file-name-nondirectory (directory-file-name PATH)) is needed as Stephen said. You see, it's confusing ;-) -- A+ Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997
[Prev in Thread] | Current Thread | [Next in Thread] |