use dest dir for temp dir
parent
114a17245e
commit
01fda04fde
|
|
@ -37,7 +37,7 @@ func (ledger Ledger) SetTransaction(i int, transaction Transaction) error {
|
|||
}
|
||||
|
||||
func (ledger Ledger) SetTransactions(transactions []Transaction) error {
|
||||
f, err := ioutil.TempFile(os.TempDir(), path.Base(ledger.path)+".*")
|
||||
f, err := ioutil.TempFile(path.Dir(ledger.path), path.Base(ledger.path)+".*")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue