[13] 8215467: Files.isHidden should return true for hidden directories on Windows
Alan Bateman
Alan.Bateman at oracle.com
Fri Jan 18 08:06:44 UTC 2019
On 17/01/2019 20:58, Brian Burkhalter wrote:
> https://bugs.openjdk.java.net/browse/JDK-8215467
>
> For Windows folders the read-only attribute is meaningless but the
> hidden attribute has meaning. With a folder's read-only attribute set,
> it is possible to create and append to a file within that folder. This
> appears to be the case whether the read-only attribute is set on the
> folder either before or after the contained file is created and
> written to. The hidden attribute does appear to be meaningful as,
> unless explicitly configured to display hidden folders, Windows
> Explorer does not display them if the hidden attribute is set.
>
Can you update the testIsHidden tests in
test/jdk/java/nio/file/Files/Misc.java to add a test for a directory?
-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20190118/6d72b328/attachment-0001.html>
More information about the nio-dev
mailing list