From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,96296bb60aa5db9 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!sn-xt-sjc-03!sn-xt-sjc-07!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail From: Brian May Newsgroups: comp.lang.ada Subject: Re: Ada.Directories Date: Wed, 24 Oct 2007 10:55:15 +1000 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <1193079360.996577.115220@e34g2000pro.googlegroups.com> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:LY4FhZ+nUsJnfYodsWGyvnxSw5E= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@supernews.com Xref: g2news2.google.com comp.lang.ada:2559 Date: 2007-10-24T10:55:15+10:00 List-Id: >>>>> "Adam" == Adam Beneschan writes: Adam> This isn't an easy question. However, I'd say that it's Adam> probably right to treat "." and ".." as nothing special (at Adam> least on Unix-type system), since that's what I think users Adam> expect; they expect to be able to use "." and ".." as if Adam> they were ordinary subdirectory names. I could be wrong Adam> about that. The fact is they are special, normally you can't have a hard link to a directory, and as such you normally can't create loops in the directory structure. As for this issue, I would be happy if the behaviour was to alway return "." and ".." or never return "." and ".." regardless of file system. i.e. the application gets the same results all the time, and doesn't have to have code that is specific to a filesystem (and might break if suddenly used on another filesystem). Perhaps the later might be more useful though, when listing directories I almost never care about "." and ".." and would have to filter them out anyway. -- Brian May