X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/c8bfd6061f5079f6c6c0155a2de1e8cd32d8a39a..5b8da5035083a849d6116672c8701cc9c184a830:/hotline/files.go?ds=sidebyside diff --git a/hotline/files.go b/hotline/files.go index 63fa482..0746b1f 100644 --- a/hotline/files.go +++ b/hotline/files.go @@ -118,6 +118,10 @@ 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 + } nameSize := make([]byte, 2) binary.BigEndian.PutUint16(nameSize, uint16(len(strippedName)))