help-gnu-emacs
[Top][All Lists]
Advanced

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

parent directories of directories


From: Jonas Bernoulli
Subject: parent directories of directories
Date: Mon, 23 Aug 2010 21:48:51 +0200

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



reply via email to

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