Integrated: 8374441: (fs) FileSystemProvider.readAttributesIfExists throws "Not a directory" when element in path is not directory should return null for ENOTDIR (unix)
Fabian Meumertzheim
fmeum at openjdk.org
Tue Jan 6 08:12:13 UTC 2026
On Wed, 31 Dec 2025 21:14:29 GMT, Fabian Meumertzheim <fmeum at openjdk.org> wrote:
> `FileSystemProvider.readAttributesIfExists` now returns `null` for a path with a true prefix that is not a directory rather than throwing `NotDirectoryException`.
This pull request has now been integrated.
Changeset: 2fbc4162
Author: Fabian Meumertzheim <fmeum at openjdk.org>
Committer: Alan Bateman <alanb at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/2fbc4162e808f14b6114499f49db3e6ef1590f24
Stats: 25 lines in 2 files changed: 20 ins; 0 del; 5 mod
8374441: (fs) FileSystemProvider.readAttributesIfExists throws "Not a directory" when element in path is not directory should return null for ENOTDIR (unix)
Reviewed-by: alanb
-------------
PR: https://git.openjdk.org/jdk/pull/29013
More information about the nio-dev
mailing list