Brain fart: it's the changed time, not created.
This commit is contained in:
parent
fdc1b0261b
commit
0bc7acbc68
|
@ -114,10 +114,10 @@ func Duration(d time.Duration) string {
|
||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
|
|
||||||
// FileTime contains the created, modified, and accessed timestamps
|
// FileTime contains the changed, modified, and accessed timestamps
|
||||||
// for a file.
|
// for a file.
|
||||||
type FileTime struct {
|
type FileTime struct {
|
||||||
Created time.Time
|
Changed time.Time
|
||||||
Modified time.Time
|
Modified time.Time
|
||||||
Accessed time.Time
|
Accessed time.Time
|
||||||
}
|
}
|
||||||
|
@ -136,7 +136,7 @@ func LoadFileTime(path string) (FileTime, error) {
|
||||||
return ft, err
|
return ft, err
|
||||||
}
|
}
|
||||||
|
|
||||||
ft.Created = timeSpecToTime(st.Ctim)
|
ft.Changed = timeSpecToTime(st.Ctim)
|
||||||
ft.Modified = timeSpecToTime(st.Mtim)
|
ft.Modified = timeSpecToTime(st.Mtim)
|
||||||
ft.Accessed = timeSpecToTime(st.Atim)
|
ft.Accessed = timeSpecToTime(st.Atim)
|
||||||
return ft, nil
|
return ft, nil
|
||||||
|
|
Loading…
Reference in New Issue