YTSFlix_Go/vendor/github.com/anacrolix/missinggo/atime_windows.go
2018-11-04 15:58:15 +01:00

13 lines
221 B
Go

package missinggo
import (
"os"
"syscall"
"time"
)
func fileInfoAccessTime(fi os.FileInfo) time.Time {
ts := fi.Sys().(*syscall.Win32FileAttributeData).LastAccessTime
return time.Unix(0, int64(ts.Nanoseconds()))
}