diff options
Diffstat (limited to 'hotline/files.go')
| -rw-r--r-- | hotline/files.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hotline/files.go b/hotline/files.go index dcabf9d..d4bea53 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" @@ -132,7 +133,7 @@ func getFileNameList(path string, ignoreList []string) (fields []Field, err erro fnwi.name = []byte(strippedName) - b, err := fnwi.MarshalBinary() + b, err := io.ReadAll(&fnwi) if err != nil { return nil, err } |