Bug or not bug? Files.newInputStream() on a Path which is a directory does not fail until you read from it

Alan Bateman Alan.Bateman at oracle.com
Sat Dec 6 21:40:58 UTC 2014


On 06/12/2014 12:44, Francis Galiegue wrote:
> :
> OK... By the way, on Windows system the code I posted (with a correct
> path, of course) throws AccessDeniedException when attempting to open!
>
Yes, Windows specific behavior where it fails with "Access Denied" when 
you attempt to open a directory.

-Alan.


More information about the nio-dev mailing list