use dest dir for temp dir

This commit is contained in:
Bel LaPointe
2021-08-08 09:55:58 -06:00
parent 114a17245e
commit 01fda04fde

View File

@@ -37,7 +37,7 @@ func (ledger Ledger) SetTransaction(i int, transaction Transaction) error {
} }
func (ledger Ledger) SetTransactions(transactions []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 { if err != nil {
return err return err
} }