github.com/a4a881d4/docker@v1.9.0-rc2/pkg/archive/changes_windows.go (about)

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