opendylan icon indicating copy to clipboard operation
opendylan copied to clipboard

File Properties (Posix) - ctime is labelled incorrectly

Open pedro-w opened this issue 7 years ago • 1 comments

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)

pedro-w avatar Sep 20 '18 07:09 pedro-w

Some platforms have st_birthtime - I think FreeBSD and 64-bit Darwin but am a bit unclear about the rules.

pedro-w avatar Sep 20 '18 08:09 pedro-w