Path.checkAccess (6873681)
Rémi Forax
forax at univ-mlv.fr
Wed Oct 13 10:15:40 PDT 2010
Le 13/10/2010 18:32, Alan Bateman a écrit :
> Rémi Forax wrote:
>> Usually when a method can fail for different reasons we use different
>> exceptions.
>> checkAccess already returns different kind of IOException so I don't
>> see your point.
> It would be great to get rid of checkAccess but we have to provide
> some means for those that think they need it. The issue with the
> current method is that it's not easy to use, especially where you want
> to take action where you have the requested access.
>
> -Alan.
The other solution is to move checkAccess in BasicFileAttributes or in
Attributes.
If you decide to move checkAccess, I think that isHidden should follow.
Rémi
More information about the nio-dev
mailing list