Brain fart: it's the changed time, not created.

This commit is contained in:
Kyle 2016-01-21 02:09:35 -08:00
parent fdc1b0261b
commit 0bc7acbc68
1 changed files with 3 additions and 3 deletions

View File

@ -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