Skip to main content

Introducing NIO.2 (JSR 203) Part 3: File System Attributes and Permissions support in NIO.2

Posted by kalali on June 23, 2010 at 12:28 PM PDT


Path.checkAccess throws IOException?

It looks strange to me that an access mode check throws an exception if access is not available (control flow by exception?!). I would have expected a return value instead. Is there a certain reason to model this API like this? cu+tnx Stefan