RFR: 8316304: (fs) Add support for BasicFileAttributes.creationTime() for Linux

Severin Gehwolf sgehwolf at openjdk.org
Wed Sep 20 10:15:51 UTC 2023


On Wed, 20 Sep 2023 07:04:56 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> One other thing to try is to rename prepAttributes to something like copyStatAttributes and add a copyStatXAttributes that copies the fields from the statx structure. That goes with calling stat or statx, never both.

OK. Just to clarify: if `statx` is available it should use it and retrieve all needed attributes from the statx call (if all attributes can be retrieved that way). Otherwise use `stat64/lstat` as before (with birth time missing).

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

PR Comment: https://git.openjdk.org/jdk/pull/15792#issuecomment-1727409460


More information about the nio-dev mailing list