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

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


On Wed, 19 Nov 2025 19:46:17 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> If you have cycles, there are 7 cases that have "If a file of that name already exists and the CREATE_NEW ..." that could be improved if changed to "If the path locates an existing file and the CREATE_NEW ...".

Addressed in commit 3684b8c.

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

PR Comment: https://git.openjdk.org/jdk/pull/28378#issuecomment-3554443834


More information about the nio-dev mailing list