From: Adam Beneschan <adam@irvine.com>
Subject: Re: File_size on windows Ada 2005
Date: Thu, 04 Oct 2007 18:06:50 -0700
Date: 2007-10-04T18:06:50-07:00 [thread overview]
Message-ID: <1191546410.087526.327550@19g2000hsx.googlegroups.com> (raw)
In-Reply-To: <1191521369.369419.29230@o80g2000hse.googlegroups.com>
On Oct 4, 11:09 am, Anh Vo <anhvofrc...@gmail.com> wrote:
> On Oct 3, 8:10 pm, "ME" <abcd...@nonodock.net> wrote:
>
> > Does File_size work on directories? What does it return in windows?
>
> Use the function Directories.Size (String) return
> Directories.File_Size as shown in function specification below
>
> function Size (Name : String) return File_Size;
This doesn't necessarily work on directories, though, even though it's
in the Directories package. The description of the Size function is:
# Returns the size of the external file represented by Name. The size
of an
# external file is the number of stream elements contained in the
file. If the
# external file is not an ordinary file, the result is implementation-
defined.
and a directory is certainly not an ordinary file. So if you give it
a directory name as the Name, it could raise an exception (possibly
Name_Error, but not necessarily), or it could return a result that
means something implementation-defined, or it could return meaningless
garbage.
-- Adam
next prev parent reply other threads:[~2007-10-05 1:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <13g8me47tunfb77@corp.supernews.com>
2007-10-04 18:09 ` File_size on windows Ada 2005 Anh Vo
2007-10-05 1:06 ` Adam Beneschan [this message]
2007-10-05 1:33 ` Anh Vo
2007-10-04 20:37 ` anon
2007-10-05 4:51 ` ME
2007-10-05 14:29 ` anon
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox