diff options
author | Nick White <git@njw.name> | 2020-12-03 15:20:15 +0000 |
---|---|---|
committer | Nick White <git@njw.name> | 2020-12-03 15:20:15 +0000 |
commit | cbe02a57377787cd34172453a477f68f200448e8 (patch) | |
tree | 4092012f68ed3df71e744f1ec65780b45a7dc184 /cmd/rescribe/main.go | |
parent | 38dbdd0b21fb363e3f63fd3ea50272975e98eb77 (diff) |
[rescribe] Fix portability issue where hocrs may not be correctly moved and txt-ified on windows
Diffstat (limited to 'cmd/rescribe/main.go')
-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 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) } |