]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/blob
2d8708d0aef1e536d597c58015f15ad12945bfff
[github/fretlink/terraform-provider-statuscake.git] /
1 package archive
2
3 import (
4 "os"
5
6 "github.com/fsouza/go-dockerclient/external/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 }