comp.lang.ada
 help / color / mirror / Atom feed
From: Brian May <bam@snoopy.apana.org.au>
Subject: Re: Ada.Directories
Date: Wed, 24 Oct 2007 10:55:15 +1000
Date: 2007-10-24T10:55:15+10:00	[thread overview]
Message-ID: <sa43aw1ib64.fsf@snoopy.microcomaustralia.com.au> (raw)
In-Reply-To: 1193079360.996577.115220@e34g2000pro.googlegroups.com

>>>>> "Adam" == Adam Beneschan <adam@irvine.com> 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 <bam@snoopy.apana.org.au>



      parent reply	other threads:[~2007-10-24  0:55 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 ` Ada.Directories anon
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   ` Brian May [this message]
replies disabled

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