* parent directories of directories
@ 2010-08-23 19:48 Jonas Bernoulli
2010-08-23 20:31 ` Jonas Bernoulli
0 siblings, 1 reply; 2+ messages in thread
From: Jonas Bernoulli @ 2010-08-23 19:48 UTC (permalink / raw)
To: help-gnu-emacs
How does one get the parent directory of a directory in a way that
works on all supported platforms?
For regular files `file-name-directory` can be used but for
directories this just returns the given argument.
One could use `(file-name-directory (substring 0 -1 directory))` but I
have no idea wether this works on all platforms.
Thanks
Jonas
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-08-23 20:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-23 19:48 parent directories of directories Jonas Bernoulli
2010-08-23 20:31 ` Jonas Bernoulli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).