Merge pull request #17 from mvrhov/patch-1

Create temporary file in same directory as the final fiel resides
This commit is contained in:
Dan Markham 2019-04-19 00:02:44 -07:00 committed by GitHub
commit 325a6e167c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ func main() {
}
// Write to tmpfile first
tmpFile, err := ioutil.TempFile("", fmt.Sprintf("%s_enumer_", typs[0]))
tmpFile, err := ioutil.TempFile(dir, fmt.Sprintf("%s_enumer_", typs[0]))
if err != nil {
log.Fatalf("creating temporary file for output: %s", err)
}