Skip to content

The "ctime" field from stat is not time of file creation. #15168

Closed
@zookoatleastauthoritycom

Description

fn from_rtio(s: rtio::FileStat) -> FileStat {
seems to be reading the 4th field of stat result and storing it as "created", but if that 4th field is coming from stat_ctime then this is a bug, because stat_ctime is not the time of file creation, but is instead the most recent time that either the content or the metadata of the file changed: https://en.wikipedia.org/wiki/Stat_%28Unix%29#ctime

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions