comp.lang.ada
 help / color / mirror / Atom feed
* Stability of GNAT.Directory_Operations
@ 2008-10-07 15:24 Maciej Sobczak
  2008-10-07 16:24 ` Jean-Pierre Rosen
  0 siblings, 1 reply; 2+ messages in thread
From: Maciej Sobczak @ 2008-10-07 15:24 UTC (permalink / raw)


Hi,

Is it possible to delete a file (in terms of Ada.Direct_IO.Delete, for
example) in the middle of a directory iteration done with
GNAT.Directory_Operations.Read?

The case in question is deleting a file that has been already visited
by GNAT.Directory_Operations.Read, but deleting a file before it is
visited is also an interesting scenario.

The GNAT.Directory_Operations specification file does not document it.

--
Maciej Sobczak * www.msobczak.com * www.inspirel.com

Database Access Library for Ada: www.inspirel.com/soci-ada



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Stability of GNAT.Directory_Operations
  2008-10-07 15:24 Stability of GNAT.Directory_Operations Maciej Sobczak
@ 2008-10-07 16:24 ` Jean-Pierre Rosen
  0 siblings, 0 replies; 2+ messages in thread
From: Jean-Pierre Rosen @ 2008-10-07 16:24 UTC (permalink / raw)


Maciej Sobczak a �crit :
> Hi,
> 
> Is it possible to delete a file (in terms of Ada.Direct_IO.Delete, for
> example) in the middle of a directory iteration done with
> GNAT.Directory_Operations.Read?
> 
I don't know the exact answer to this question, but note that it is not 
different from the file being deleted by external means (i.e. outside 
the Ada program) during iteration - something that can happen at any time.

-- 
---------------------------------------------------------
            J-P. Rosen (rosen@adalog.fr)
Visit Adalog's web site at http://www.adalog.fr



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-07 16:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-07 15:24 Stability of GNAT.Directory_Operations Maciej Sobczak
2008-10-07 16:24 ` Jean-Pierre Rosen

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