Re: Question concerning ruby file access
- From: Sebastian Hungerecker <sepp2k@xxxxxxxxxxxxxx>
- Date: Wed, 29 Oct 2008 19:24:50 -0500
Stefan Salewski wrote:
But how do I test in this notation that the file with name "testfile"
really exits (and opening was successful). In an multi-tasking
environment another process may delete the file just before this
statement is executed.
If you want to completely avoid race conditions, you don't check - you just do
and then recover from eventual errors (i.e. you rescue the exception).
HTH,
Sebastian
--
Jabber: sepp2k@xxxxxxxxxx
ICQ: 205544826
.
- References:
- Question concerning ruby file access
- From: Stefan Salewski
- Question concerning ruby file access
- Prev by Date: Question concerning ruby file access
- Next by Date: Re: Question concerning ruby file access
- Previous by thread: Question concerning ruby file access
- Next by thread: Re: Question concerning ruby file access
- Index(es):
Relevant Pages
|