mirror of https://github.com/dmarkham/enumer.git
Merge pull request #17 from mvrhov/patch-1
Create temporary file in same directory as the final fiel resides
This commit is contained in:
commit
325a6e167c
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue