Add debugging utility for manual directory comparison

This commit is contained in:
Jakob Borg
2014-12-30 15:44:05 +01:00
parent 6f3fbbbe49
commit 1e9110b763
2 changed files with 181 additions and 0 deletions

View File

@@ -317,6 +317,10 @@ type fileInfo struct {
hash [16]byte
}
func (f fileInfo) String() string {
return fmt.Sprintf("%s %04o %d %x", f.name, f.mode, f.mod, f.hash)
}
type fileInfoList []fileInfo
func (l fileInfoList) Len() int {