use dest dir for temp dir

master
Bel LaPointe 2021-08-08 09:55:58 -06:00
parent 114a17245e
commit 01fda04fde
1 changed files with 1 additions and 1 deletions

View File

@ -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
}