diff options
author | Nick White <git@njw.name> | 2020-12-07 17:04:12 +0000 |
---|---|---|
committer | Nick White <git@njw.name> | 2020-12-07 17:04:12 +0000 |
commit | 17b2d91d5f323fd985ca012e50d36908cbceba87 (patch) | |
tree | 6a3fe64a8381eed4fab724cb8de43b6951fccf4e | |
parent | 068ad0b666705a49ab22d7b48cd6a7d67b37f234 (diff) |
[rescribe] Fix up *.hocr glob, which ensures that using a savedir that already has a hocr directory in it will workv0.3.2
-rw-r--r-- | cmd/rescribe/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) } |