changes_windows.go 598 B

123456789101112131415161718192021222324252627282930
  1. package archive
  2. import (
  3. "os"
  4. "github.com/docker/docker/pkg/system"
  5. )
  6. func statDifferent(oldStat *system.StatT, newStat *system.StatT) bool {
  7. // Don't look at size for dirs, its not a good measure of change
  8. if oldStat.Mtim() != newStat.Mtim() ||
  9. oldStat.Mode() != newStat.Mode() ||
  10. oldStat.Size() != newStat.Size() && !oldStat.Mode().IsDir() {
  11. return true
  12. }
  13. return false
  14. }
  15. func (info *FileInfo) isDir() bool {
  16. return info.parent == nil || info.stat.Mode().IsDir()
  17. }
  18. func getIno(fi os.FileInfo) (inode uint64) {
  19. return
  20. }
  21. func hasHardlinks(fi os.FileInfo) bool {
  22. return false
  23. }