stat

Undocumented

  • Date of last access. Date of st_atimespec or st_atime.

    The field st_atime is changed by file accesses, for example, by execve, mknod, pipe, utime, and read (of more than zero bytes). Other routines, like mmap, may or may not update st_atime.

    Declaration

    Swift

    var lastAccessDate: Date
  • Date of last data modification. Date of st_mtimespec or st_mtime.

    The field st_mtime is changed by file modifications, for example, by mknod, truncate, utime, and write (of more than zero bytes). Moreover, st_mtime of a directory is changed by the creation or deletion of files in that directory. The st_mtime field is not changed for changes in owner, group, hard link count, or mode.

    Declaration

    Swift

    var lastDataModificationDate: Date
  • Date of last status change. Date of st_ctimespec or st_ctime.

    The field st_ctime is changed by writing or by setting inode information (i.e., owner, group, link count, mode, etc.).

    Declaration

    Swift

    var lastStatusChangeDate: Date
  • Date file was created. Date of st_birthtimespec or st_birthtime.

    Declaration

    Swift

    var creationDate: Date
  • Undocumented