diff options
Diffstat (limited to 'pkg/ctime/ctime_linux_64.go')
-rw-r--r-- | pkg/ctime/ctime_linux_64.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pkg/ctime/ctime_linux_64.go b/pkg/ctime/ctime_linux_64.go new file mode 100644 index 000000000..1251c1ded --- /dev/null +++ b/pkg/ctime/ctime_linux_64.go @@ -0,0 +1,14 @@ +// +build !arm,!386,linux + +package ctime + +import ( + "os" + "syscall" + "time" +) + +func created(fi os.FileInfo) time.Time { + st := fi.Sys().(*syscall.Stat_t) + return time.Unix(st.Ctim.Sec, st.Ctim.Nsec) +} |