From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Behavior of directory-files on Windows Date: Fri, 02 Dec 2011 17:03:53 +0200 Message-ID: <83d3c7c8x2.fsf@gnu.org> References: <87liqw3116.fsf@gmail.com> <83r50o439k.fsf@gnu.org> <878vmw6vs6.fsf@gmail.com> <83aa7b4a1s.fsf@gnu.org> <871usnw8rr.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1322838463 22967 80.91.229.12 (2 Dec 2011 15:07:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 2 Dec 2011 15:07:43 +0000 (UTC) Cc: lekktu@gmail.com, emacs-devel@gnu.org To: Thierry Volpiatto Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 02 16:07:29 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RWUi0-0002xt-Ko for ged-emacs-devel@m.gmane.org; Fri, 02 Dec 2011 16:07:28 +0100 Original-Received: from localhost ([::1]:55476 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWUfi-00070g-9z for ged-emacs-devel@m.gmane.org; Fri, 02 Dec 2011 10:05:06 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:42421) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWUfe-0006z1-Vc for emacs-devel@gnu.org; Fri, 02 Dec 2011 10:05:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RWUfc-0006c9-GB for emacs-devel@gnu.org; Fri, 02 Dec 2011 10:05:02 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:53367) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWUfc-0006c1-9t for emacs-devel@gnu.org; Fri, 02 Dec 2011 10:05:00 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LVL009000G5QH00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Fri, 02 Dec 2011 17:04:59 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.124.120.75]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LVL009VQ0KAOQ10@a-mtaout20.012.net.il>; Fri, 02 Dec 2011 17:04:59 +0200 (IST) In-reply-to: <871usnw8rr.fsf@gmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:146427 Archived-At: > From: Thierry Volpiatto > Cc: lekktu@gmail.com, emacs-devel@gnu.org > Date: Fri, 02 Dec 2011 11:46:48 +0100 > > I think adding both c:/. and c:/.. to listing of directory-files doesn't > arm. > It's what I did here (in anything) and it is nice feature IMO. > On GNU/Linux, having "." and ".." in (directory-files "/") is not a > problem. > > Do you think this can create problems in some places? It won't create problems if done thoroughly: you need to invent all of the file-attributes for these fake entries, including such obscure ones as number of links etc. And you need to handle the cases where there are real directory entries by those names, so as not to clobber accurate information.