comp.lang.ada
 help / color / mirror / Atom feed
From: anon@anon.org (anon)
Subject: Re: Ada.Directories
Date: Sat, 20 Oct 2007 18:43:21 GMT
Date: 2007-10-20T18:43:21+00:00	[thread overview]
Message-ID: <d%rSi.245768$ax1.158475@bgtnsc05-news.ops.worldnet.att.net> (raw)
In-Reply-To: qa32dfmc7uk9$.cb3cqu018xtz$.dlg@40tude.net

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 <qa32dfmc7uk9$.cb3cqu018xtz$.dlg@40tude.net>, "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> 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




  reply	other threads:[~2007-10-20 18:43 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-20  9:21 Ada.Directories Dmitry A. Kazakov
2007-10-20 18:43 ` anon [this message]
2007-10-20 19:40   ` Ada.Directories Dmitry A. Kazakov
2007-10-20 20:35     ` Ada.Directories Maciej Sobczak
2007-10-21  7:40       ` Ada.Directories Dmitry A. Kazakov
2007-10-21 13:05         ` Ada.Directories Jacob Sparre Andersen
2007-10-21 13:26           ` Ada.Directories Dmitry A. Kazakov
2007-10-21 15:29             ` Ada.Directories Markus E L
2007-10-21 15:38             ` Ada.Directories Jacob Sparre Andersen
2007-10-21 17:19             ` Ada.Directories Martin Krischik
2007-10-21 18:52               ` Ada.Directories Dmitry A. Kazakov
2007-10-21 20:32                 ` Ada.Directories Markus E L
2007-10-21 23:52         ` Ada.Directories Robert A Duff
2007-10-22 11:08         ` Ada.Directories Harald Korneliussen
2007-11-15 11:44           ` Ada.Directories Markus E L
2007-11-16 13:27             ` Ada.Directories Dmitry A. Kazakov
2007-11-16 16:48               ` Ada.Directories Martin Krischik
2007-11-16 18:47                 ` Ada.Directories Larry Kilgallen
2007-11-16 20:35                   ` Ada.Directories Martin Krischik
2007-11-16 19:00                 ` Ada.Directories Dmitry A. Kazakov
2007-10-21  1:25     ` Ada.Directories anon
2007-10-20 22:36   ` Ada.Directories Larry Kilgallen
2007-10-22 18:56 ` Ada.Directories Adam Beneschan
2007-10-23  9:04   ` Ada.Directories Peter Hermann
2007-10-23 12:07     ` Ada.Directories Larry Kilgallen
2007-10-23 13:01       ` Ada.Directories Peter Hermann
2007-10-23 16:08       ` Ada.Directories Robert A Duff
2007-10-23 17:11         ` Ada.Directories Larry Kilgallen
2007-10-24  0:55   ` Ada.Directories Brian May
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox