tractor.dev/toolkit-go@v0.0.0-20241010005851-214d91207d07/engine/fs/watchfs/watcher/samefile_windows.go (about) 1 // +build windows 2 3 package watcher 4 5 import "os" 6 7 func sameFile(fi1, fi2 os.FileInfo) bool { 8 return fi1.ModTime() == fi2.ModTime() && 9 fi1.Size() == fi2.Size() && 10 fi1.Mode() == fi2.Mode() && 11 fi1.IsDir() == fi2.IsDir() 12 }