opendylan
opendylan copied to clipboard
File Properties (Posix) - ctime is labelled incorrectly
In struct stat, the field st_ctime is the time the attributes were changed (chmod et al), not the time the time the file was created.
See
https://github.com/dylan-lang/opendylan/blob/30b4a9192eecf4f5458c88f3901866af9dc1cf90/sources/system/file-system/unix-file-system.dylan#L241
and
https://github.com/dylan-lang/opendylan/blob/30b4a9192eecf4f5458c88f3901866af9dc1cf90/sources/system/file-system/unix-file-system.dylan#L306-L322
Reference: https://linux.die.net/man/2/stat https://www.unix.com/man-page/osx/2/stat/ https://www.freebsd.org/cgi/man.cgi?stat(2)
Some platforms have st_birthtime - I think FreeBSD and 64-bit Darwin but am a bit unclear about the rules.