RFR: 8057113: (fs) Path should have a method to obtain the filename extension [v18]

Mark Reinhold mr at openjdk.org
Mon Oct 3 20:07:31 UTC 2022


On Mon, 3 Oct 2022 19:05:34 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> Interestingly, double clicking on both the files `.txt` and `...txt` with identical content (and no file signature) in Linux File Manager, macOS Finder, and Windows Explorer all open the respective platform default text editor.

Is that because those systems are interpreting the `txt` suffix, or is it because they always open files of unknown type with the platform’s default text editor?

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

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


More information about the nio-dev mailing list