X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/1c7401b16230f9834469127945d9c506919bed14..e995052ef530b1eae2d0476ff519f7225bbb481d:/hotline/files.go diff --git a/hotline/files.go b/hotline/files.go index 9357bdb..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" @@ -123,7 +124,7 @@ func getFileNameList(path string, ignoreList []string) (fields []Field, err erro strippedName := strings.ReplaceAll(file.Name(), ".incomplete", "") strippedName, err = txtEncoder.String(strippedName) if err != nil { - return nil, err + continue } nameSize := make([]byte, 2) @@ -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 }