YTSFlix_Go/vendor/github.com/anacrolix/missinggo/atime_plan9.go

13 lines
181 B
Go
Raw Normal View History

2018-11-04 14:58:15 +00:00
package missinggo
import (
"os"
"syscall"
"time"
)
func fileInfoAccessTime(fi os.FileInfo) time.Time {
sec := fi.Sys().(*syscall.Dir).Atime
return time.Unix(int64(sec), 0)
}