mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-17 14:04:52 +02:00
23 lines
350 B
Go
23 lines
350 B
Go
//go:build aix || linux || dragonfly || openbsd || solaris
|
|
|
|
package stat
|
|
|
|
import (
|
|
"fmt"
|
|
"io/fs"
|
|
"time"
|
|
)
|
|
|
|
var _ = fmt.Print
|
|
|
|
func Get(f fs.FileInfo) (ans StatResult) {
|
|
u := ans.setup_common(f)
|
|
if u != nil {
|
|
ans.Has_atime = true
|
|
ans.Has_ctime = true
|
|
ans.Ctime = time.Unix(u.Ctim.Unix())
|
|
ans.Atime = time.Unix(u.Atim.Unix())
|
|
}
|
|
return
|
|
}
|