diff_windows.go 563 B

1234567891011121314151617181920212223242526272829303132
  1. package fs
  2. import (
  3. "os"
  4. "golang.org/x/sys/windows"
  5. )
  6. func detectDirDiff(upper, lower string) *diffDirOptions {
  7. return nil
  8. }
  9. func compareSysStat(s1, s2 interface{}) (bool, error) {
  10. f1, ok := s1.(windows.Win32FileAttributeData)
  11. if !ok {
  12. return false, nil
  13. }
  14. f2, ok := s2.(windows.Win32FileAttributeData)
  15. if !ok {
  16. return false, nil
  17. }
  18. return f1.FileAttributes == f2.FileAttributes, nil
  19. }
  20. func compareCapabilities(p1, p2 string) (bool, error) {
  21. // TODO: Use windows equivalent
  22. return true, nil
  23. }
  24. func isLinked(os.FileInfo) bool {
  25. return false
  26. }