Something went wrong. Try again.
A community based topic aggregation platform built on atproto
Something went wrong. Try again.
347 B · 16 lines
Go
at main
1234567891011121314151617package imageproxy
import ( "io/fs" "syscall" "time")
// lastAccessTime returns the file's access time, which DiskCache.Get sets on// every read and EvictLRU orders by.func lastAccessTime(info fs.FileInfo) time.Time { if stat, ok := info.Sys().(*syscall.Stat_t); ok { return time.Unix(stat.Atimespec.Unix()) } return info.ModTime()}