From 17b2d91d5f323fd985ca012e50d36908cbceba87 Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 7 Dec 2020 17:04:12 +0000 Subject: [rescribe] Fix up *.hocr glob, which ensures that using a savedir that already has a hocr directory in it will work --- cmd/rescribe/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/rescribe/main.go b/cmd/rescribe/main.go index 8414c53..07eeaf0 100644 --- a/cmd/rescribe/main.go +++ b/cmd/rescribe/main.go @@ -190,7 +190,7 @@ func main() { log.Fatalf("Error removing temporary directory %s: %v", tempdir, err) } - hocrs, err := filepath.Glob(fmt.Sprintf("%s%s*hocr", savedir, string(filepath.Separator))) + hocrs, err := filepath.Glob(fmt.Sprintf("%s%s*.hocr", savedir, string(filepath.Separator))) if err != nil { log.Fatalf("Error looking for .hocr files: %v", err) } -- cgit v1.2.1-24-ge1ad