Commit 5595fe09 authored by Aaron Jacobs's avatar Aaron Jacobs

Implement GetTimes for linux.

parent 850146a6
......@@ -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
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment