[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#27982: 25.1.50; expand-file-name docstring on how to traverse the fi
From: |
Eli Zaretskii |
Subject: |
bug#27982: 25.1.50; expand-file-name docstring on how to traverse the filesystem |
Date: |
Sun, 06 Aug 2017 19:53:57 +0300 |
> From: Nicolas Richard <youngfrog@members.fsf.org>
> Date: Sun, 06 Aug 2017 13:38:32 +0200
>
> The docstring of expand-file-name suggest
> (directory-file-name (file-name-directory dirname))
> to traverse a directory
No, it only suggests that as a more reliable alternative to
(expand-file-name ".." dirname)
> This looks wrong to me, e.g.
> (list current-directory
> (directory-file-name (file-name-directory current-directory)))
> => ("/home/youngfrog/" "/home/youngfrog")
This is not the use case against which the doc string tries to warn,
Thanks.