RFR: JDK-8274172: Convert JavadocTester to use NIO [v2]
Pavel Rappo
prappo at openjdk.java.net
Thu Sep 23 18:53:03 UTC 2021
On Thu, 23 Sep 2021 18:15:41 GMT, Jonathan Gibbons <jjg at openjdk.org> wrote:
> I guess I find it non-obvious to use Files.copy to create an empty directory, without copying its contents.
Theoretically, this way you also copy (some) attributes. But it looks like it requires some extra effort; [the specification](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/nio/file/Files.html#copy(java.nio.file.Path,java.nio.file.Path,java.nio.file.CopyOption...)) is not particularly clear on that:
...File attributes are not required to be copied to the target file.
Does it mean it's implementation-specific?
-------------
PR: https://git.openjdk.java.net/jdk/pull/5644
More information about the javadoc-dev
mailing list