RFR: 8220816: (fs) Files.createDirectory should make it more obvious that it fails when the directory already exists [v4]

Brian Burkhalter bpb at openjdk.org
Wed Nov 19 19:17:20 UTC 2025


On Wed, 19 Nov 2025 18:59:17 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> src/java.base/share/classes/java/nio/file/Files.java line 579:
>> 
>>> 577:     /**
>>> 578:      * Creates a new and empty file, failing if {@code path} locates an existing
>>> 579:      * file. The
>> 
>> That works. I assume you'll re-flow this a bit to avoid "file. The"  be on its own.
>
>> I assume you'll re-flow this a bit
> 
> I left it that way intentionally to ease comparing the diffs in progress.

Fixed in 9cf6ede.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/28378#discussion_r2543247431


More information about the nio-dev mailing list