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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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!newshub.sdsu.edu!npeer.de.kpn-eurorings.net!npeer-ng1.kpn.DE!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Ada.Directories Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: Date: Sat, 20 Oct 2007 21:40:57 +0200 Message-ID: <1o4hp0vtlenw0.jql7yewhhr4a.dlg@40tude.net> NNTP-Posting-Date: 20 Oct 2007 21:41:01 CEST NNTP-Posting-Host: 9eb62a4f.newsspool2.arcor-online.net X-Trace: DXC=_bSmhl9A95b?8N[6LHn;2LCVN[DJi3SkXf;H@Q7L:hL[LAJ X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:2515 Date: 2007-10-20T21:41:01+02:00 List-Id: On Sat, 20 Oct 2007 18:43:21 GMT, anon wrote: > Its a "File System" feature! > > In today's file systems, the first two entries are "." and ".." directories. > One exception to this rule is the FAT file systems which does not contain > these two entries. Neither the root directory of a volume does. But that is irrelevant to the issue. > So if you seach the entire directory, the first two names that will be > returned are "." and ".." unless you search a FAT partition or a floopy. > > All languages including Ada, C, JAVA that have directory search routine > will act in same way. I don't care how an OS-specific search might work. That is actually the reason why I use Ada.Directories, which abstracts any concrete OS. So the question is whether appearance of ".." is a requirement. Maybe, ".." is an alias name? But then 1. Why there is no File_Kind value for aliases? 2. Why Full_Name of the Directory_Entry corresponding to ".." does not render the true name of? Can the same file have different full names? -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de