From 937c18206b16b6659b497c2fd1c35bf343bb87b9 Mon Sep 17 00:00:00 2001 From: Sorrow446 <47045733+Sorrow446@users.noreply.github.com> Date: Mon, 13 Jun 2022 00:25:14 +0100 Subject: [PATCH] Update mp4tag.go --- mp4tag.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mp4tag.go b/mp4tag.go index 687864e..1f94158 100644 --- a/mp4tag.go +++ b/mp4tag.go @@ -409,8 +409,8 @@ func Write(trackPath string, _tags *Tags) error { return errors.New( "Failed to make temp directory.\n" + err.Error()) } - tempPath = filepath.Join(tempPath, "tmp.m4a") defer os.RemoveAll(tempPath) + tempPath = filepath.Join(tempPath, "tmp.m4a") atomsList := getAtomsList() outFile, err := os.OpenFile(trackPath, os.O_RDONLY, 0755) if err != nil {