github.com/anthropics/anthropic-sdk-go@v1.70.1/internal/filestore/filestore_ctime_ctim.go (about) 1 //go:build linux || openbsd || dragonfly 2 3 package filestore 4 5 import ( 6 "os" 7 "syscall" 8 ) 9 10 // ctimeNs is fi's inode change time in nanoseconds — see hashEntry. 11 // These GOOS values spell the syscall.Stat_t field Ctim. 12 func ctimeNs(fi os.FileInfo) int64 { 13 return fi.Sys().(*syscall.Stat_t).Ctim.Nano() 14 }