X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/2b7fabb5a1ff6092dd3ea62bd882dd0c02951b81..3e20402491f013710dfa1c2f3d0cd6ab0e212585:/hotline/files.go diff --git a/hotline/files.go b/hotline/files.go index dcabf9d..0963fbf 100644 --- a/hotline/files.go +++ b/hotline/files.go @@ -3,6 +3,7 @@ package hotline import ( "encoding/binary" "errors" + "io" "io/fs" "os" "path/filepath" @@ -130,9 +131,9 @@ func getFileNameList(path string, ignoreList []string) (fields []Field, err erro binary.BigEndian.PutUint16(nameSize, uint16(len(strippedName))) copy(fnwi.NameSize[:], nameSize) - fnwi.name = []byte(strippedName) + fnwi.Name = []byte(strippedName) - b, err := fnwi.MarshalBinary() + b, err := io.ReadAll(&fnwi) if err != nil { return nil, err }