mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-06 09:15:57 +02:00
21 lines
294 B
Go
21 lines
294 B
Go
//go:build darwin || freebsd || netbsd
|
|
|
|
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.Ctime = time.Unix(u.Ctimespec.Unix())
|
|
ans.Atime = time.Unix(u.Atimespec.Unix())
|
|
}
|
|
return
|
|
}
|