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!border1.nntp.dca.giganews.com!nntp.giganews.com!wn13feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!53ab2750!not-for-mail Newsgroups: comp.lang.ada From: anon@anon.org (anon) Subject: Re: Ada.Directories Reply-To: anon@anon.org (anon) References: X-Newsreader: IBM NewsReader/2 2.0 Message-ID: Date: Sat, 20 Oct 2007 18:43:21 GMT NNTP-Posting-Host: 12.65.222.101 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1192905801 12.65.222.101 (Sat, 20 Oct 2007 18:43:21 GMT) NNTP-Posting-Date: Sat, 20 Oct 2007 18:43:21 GMT Organization: AT&T Worldnet Xref: g2news2.google.com comp.lang.ada:2514 Date: 2007-10-20T18:43:21+00:00 List-Id: 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. 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. In , "Dmitry A. Kazakov" writes: >Hi all, > >I have noticed that GNAT implementation of Ada.Directories.Search "finds" >the directory being searched and its immediate ancestor in itself (under >the names "." and ".."). Is it a bug or "feature"? If latter, then I would >expect at least a special File_Kind value reserved for the mess. > >-- >Regards, >Dmitry A. Kazakov >http://www.dmitry-kazakov.de