On Thu, 23 Sep 2021 18:15:41 GMT, Jonathan Gibbons <j...@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