RFR: 8298318: (fs) APIs for handling filename extensions

Brian Burkhalter bpb at openjdk.org
Tue Oct 24 17:32:35 UTC 2023


On Wed, 18 Oct 2023 16:20:55 GMT, Pavel Rappo <prappo at openjdk.org> wrote:

> A `withExtension(String ext)` could handle the common cases for removing, replacing, and adding an extension.

How would this work for the case of "compound extensions" such as `tar.gz` where one might want to end up with just `tar` or with `zip`, depending?

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

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


More information about the nio-dev mailing list