Implement GetTimes for linux.

geesefs-0-30-9
Aaron Jacobs 2016-01-10 23:27:28 +00:00
parent 850146a678
commit 5595fe0920
1 changed files with 7 additions and 0 deletions

View File

@ -34,3 +34,10 @@ func extractNlink(sys interface{}) (nlink uint64, ok bool) {
ok = true
return
}
func getTimes(stat *syscall.Stat_t) (atime, ctime, mtime time.Time) {
atime = time.Unix(stat.Atim.Unix())
ctime = time.Unix(stat.Ctim.Unix())
mtime = time.Unix(stat.Mtim.Unix())
return
}