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