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" "crypto/md5"
"encoding/json" "encoding/json"
"fmt" "fmt"
"hash"
"io" "io"
"os" "os"
"strings" "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 { type FileChangeInfo struct {
fileName string
typeflag int typeflag int
md5sum [16]byte md5sum [16]byte
} }