github.com/akerouanton/docker@v1.11.0-rc3/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.ModTime() != newStat.ModTime() ||
    13  		oldStat.Mode() != newStat.Mode() ||
    14  		oldStat.Size() != newStat.Size() && !oldStat.IsDir() {
    15  		return true
    16  	}
    17  	return false
    18  }
    19  
    20  func (info *FileInfo) isDir() bool {
    21  	return info.parent == nil || info.stat.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  }