This commit is contained in:
Will Murphy 2018-05-24 19:41:03 -04:00
parent f91fb4c6eb
commit ea88892839

View File

@ -6,6 +6,7 @@ import (
"crypto/md5"
"encoding/json"
"fmt"
"hash"
"io"
"os"
"strings"
@ -113,11 +114,13 @@ func printFilesInTar(parentReader *tar.Reader, h *tar.Header) {
}
}
func makeEntry(r *tar.Reader, h *tar.Header) {
func makeEntry(r *tar.Reader, h *tar.Header, hasher *hash.Hash) FileChangeInfo {
fileBytes := make([]byte, h.Size)
}
type FileChangeInfo struct {
fileName string
typeflag int
md5sum [16]byte
}