perkeep/cmd/pk-put/stat_windows.go

16 lines
233 B
Go

package main
import "syscall"
func init() {
cleanSysStat = func(si interface{}) interface{} {
st, ok := si.(*syscall.Win32FileAttributeData)
if !ok {
return si
}
st.LastAccessTime = syscall.Filetime{}
return st
}
}