RFR: 8220816: (fs) Files.createDirectory should make it more obvious that it fails when the directory already exists [v5]
Alan Bateman
alanb at openjdk.org
Wed Nov 19 19:49:21 UTC 2025
On Wed, 19 Nov 2025 19:26:06 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
> Are we not concerned about the other FAEEs mentioned [above](https://github.com/openjdk/jdk/pull/28378#issuecomment-3553974779)?
Some of them are okay, e.g. copy has "if the target file exists but ...".
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 ...".
-------------
PR Comment: https://git.openjdk.org/jdk/pull/28378#issuecomment-3554361666
More information about the nio-dev
mailing list