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

Brian Burkhalter bpb at openjdk.org
Thu Feb 27 16:45:03 UTC 2025


On Thu, 27 Feb 2025 06:41:56 GMT, Alan Bateman <alanb 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.

I was actually unsure of that also; will change.

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

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


More information about the nio-dev mailing list