diff --git a/fs/stat_unix.go b/fs/stat_unix.go index 0edebdf..ddd697c 100644 --- a/fs/stat_unix.go +++ b/fs/stat_unix.go @@ -38,7 +38,7 @@ func Ctime(st fs.FileInfo) (time.Time, error) { if !ok { return time.Time{}, fmt.Errorf("expected st.Sys() to be *syscall.Stat_t, got %T", st.Sys()) } - return time.Unix(stSys.Atim.Unix()), nil + return time.Unix(stSys.Ctim.Unix()), nil } func Mtime(st fs.FileInfo) (time.Time, error) {