RFR: 8356127: (fs) UnixFileSystemProvider.implDelete could save a syscall in some cases

Brian Burkhalter bpb at openjdk.org
Wed May 7 21:51:01 UTC 2025


On Wed, 7 May 2025 21:44:50 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> Modify `UnixFileSystemProvider.implDelete` to attempt first to delete the file using `unlink` and, if that fails, fall back to using `rmdir` if the file is a directory.

Some performance improvement has been observed for the common case of deleting a regular file.

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

PR Comment: https://git.openjdk.org/jdk/pull/25107#issuecomment-2860466447


More information about the nio-dev mailing list