RFR: 8298318: (fs) APIs for handling filename extensions [v6]

Brian Burkhalter bpb at openjdk.org
Mon Mar 11 20:13:14 UTC 2024


On Fri, 8 Mar 2024 17:30:21 GMT, Anthony Vanelverdinghe <duke at openjdk.org> wrote:

> Why can't `Path::getExtension` be platform or provider dependent as well and specify something as follows?

Does this imply not having an extension if the file is hidden, or only ignoring a leading period (`charAt(0) == '.'`) if on UNIX?

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

PR Comment: https://git.openjdk.org/jdk/pull/16226#issuecomment-1989343925


More information about the nio-dev mailing list