aboutsummaryrefslogtreecommitdiff
path: root/hotline/files.go
diff options
context:
space:
mode:
Diffstat (limited to 'hotline/files.go')
-rw-r--r--hotline/files.go4
1 files changed, 4 insertions, 0 deletions
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)))