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

Brian Burkhalter bpb at openjdk.org
Thu May 8 18:23:37 UTC 2025


> 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.

Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:

  8356127: Add capability check for EISDIR

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/25107/files
  - new: https://git.openjdk.org/jdk/pull/25107/files/c070fd11..17b67498

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=25107&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=25107&range=00-01

  Stats: 36 lines in 3 files changed: 21 ins; 0 del; 15 mod
  Patch: https://git.openjdk.org/jdk/pull/25107.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/25107/head:pull/25107

PR: https://git.openjdk.org/jdk/pull/25107


More information about the nio-dev mailing list