mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-17 22:14:53 +02:00
...
This commit is contained in:
@@ -34,8 +34,6 @@ func (s *StatResult) setup_common(f fs.FileInfo) (u *syscall.Stat_t) {
|
||||
u = nil
|
||||
}
|
||||
if u != nil {
|
||||
s.Has_atime = true
|
||||
s.Has_ctime = true
|
||||
s.Dev = uint64(u.Dev)
|
||||
s.Ino = uint64(u.Ino)
|
||||
s.Has_dev = true
|
||||
|
||||
@@ -13,6 +13,8 @@ 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())
|
||||
}
|
||||
|
||||
@@ -13,6 +13,8 @@ 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.Ctimespec.Unix())
|
||||
ans.Atime = time.Unix(u.Atimespec.Unix())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user