java.nio.file.Files.isReadable() slow on Windows 7

Alan Bateman Alan.Bateman at oracle.com
Fri May 11 07:42:37 PDT 2012


On 11/05/2012 15:29, Zhong Yu wrote:
> :
>
> I don't have time to check a Windows machine just at the minute but can you
> change:
>
> Files.isReadable(path)
>
> to
>
> path.getFileSystem().provider().checkAccess(path)
> yes it works, this one takes only 0.02ms!
>
Thanks for checking, I've created bug 7168172 to make sure this isn't 
forgotten.

-Alan


More information about the nio-dev mailing list