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
|
||||
}
|
||||
|
||||
// FileTime contains the created, modified, and accessed timestamps
|
||||
// FileTime contains the changed, modified, and accessed timestamps
|
||||
// for a file.
|
||||
type FileTime struct {
|
||||
Created time.Time
|
||||
Changed time.Time
|
||||
Modified time.Time
|
||||
Accessed time.Time
|
||||
}
|
||||
|
@ -136,7 +136,7 @@ func LoadFileTime(path string) (FileTime, error) {
|
|||
return ft, err
|
||||
}
|
||||
|
||||
ft.Created = timeSpecToTime(st.Ctim)
|
||||
ft.Changed = timeSpecToTime(st.Ctim)
|
||||
ft.Modified = timeSpecToTime(st.Mtim)
|
||||
ft.Accessed = timeSpecToTime(st.Atim)
|
||||
return ft, nil
|
||||
|
|
Loading…
Reference in New Issue