RFR: 8350654: (fs) Files.createTempDirectory should say something about the default file permissions when no file attributes specified

Brian Burkhalter bpb at openjdk.org
Wed Feb 26 18:51:02 UTC 2025


On Wed, 26 Feb 2025 18:40:17 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> Add a sentence clarifying the behavior of `Files.createTempDirectory(Path,String,FileAttribute<?>...)` when no attributes are specified.

For example, on macOS, without attributes supplied, `Files.createTempDirectory` creates a directory with mode `drwx------`  and `Files.createDirectory` one with mode `drwxr-xr-x`.

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

PR Comment: https://git.openjdk.org/jdk/pull/23808#issuecomment-2685909386


More information about the nio-dev mailing list