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

Alan Bateman alanb at openjdk.org
Thu Feb 27 06:44:57 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.

src/java.base/share/classes/java/nio/file/Files.java line 865:

> 863:      * the last occurrence is ignored. When no file attributes are specified,
> 864:      * then the resulting directory may have more restrictive access
> 865:      * permissions to (non-temporary) directories created by the

I re-read the text again and I think it would be better to drop "non-temporary" from this sentence. It would read better without it, and avoids introducing a new term.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23808#discussion_r1972967198


More information about the nio-dev mailing list