[Top][All Lists]

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

Re: Behavior of directory-files on Windows

From: Thierry Volpiatto
Subject: Re: Behavior of directory-files on Windows
Date: Thu, 01 Dec 2011 18:34:17 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

>> From: Juanma Barranquero <address@hidden>
>> Date: Thu, 1 Dec 2011 15:39:41 +0100
>> Cc: address@hidden
>> On Thu, Dec 1, 2011 at 13:54, Thierry Volpiatto
>> <address@hidden> wrote:
>> > If I do:
>> > (directory-files "c:/")
>> > The "c:/." and "c:/.." candidates are omitted
>> Assuming C:/ is really the root of your Windows' installation drive,
>> it does not have the . and .. entries (try doing "dir /a:" in C:\ and
>> in a subdirectory). So they are not omitted, they just are not there.
> Right.  DJGPP, the development environment used to build the DOS port
> of Emacs, actually _invents_ these two entries in the root of each
> drive, to avoid the unpleasant surprises like the one Thierry just
> hit.

So that would make sense to add these two entries to output of 
`directory-files', after all, one is able to do:
(find-file "c:/.") but when he list directory this file ("c:/.") is not

Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997 

reply via email to

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