Check If File Is Available (revisited)

In my post Check If File Is Available I showed a code using the Java method canWrite() to check if the file was available to be worked (read/write). Our colleague Marco Antonio commented that it could cause a race condition, so it is not a good idea to use it for that purpose.

Here is a link to a discussion where you can find more information: StockOverflow

Bookmark and Share
  1. JamesD
    Jun 11th, 2009 at 08:37 | #1

    Thanks for the useful info. It’s so interesting

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>