From cbe02a57377787cd34172453a477f68f200448e8 Mon Sep 17 00:00:00 2001 From: Nick White Date: Thu, 3 Dec 2020 15:20:15 +0000 Subject: [rescribe] Fix portability issue where hocrs may not be correctly moved and txt-ified on windows --- cmd/rescribe/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/rescribe') diff --git a/cmd/rescribe/main.go b/cmd/rescribe/main.go index f4489d8..880bbc2 100644 --- a/cmd/rescribe/main.go +++ b/cmd/rescribe/main.go @@ -184,7 +184,7 @@ func main() { log.Fatalf("Error removing temporary directory %s: %v", tempdir, err) } - hocrs, err := filepath.Glob(fmt.Sprintf("%s/*hocr", bookname)) + hocrs, err := filepath.Glob(fmt.Sprintf("%s%s*hocr", bookname, string(filepath.Separator))) if err != nil { log.Fatalf("Error looking for .hocr files: %v", err) } -- cgit v1.2.1-24-ge1ad