From 001589772c63da187f53dd94558997ca8dcbce13 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Sat, 29 Feb 2020 11:19:04 -0500 Subject: [PATCH] Skip renaming tracks with errors --- cmd/cdr/clean.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/cdr/clean.go b/cmd/cdr/clean.go index ad7f9d2..b58e6f9 100644 --- a/cmd/cdr/clean.go +++ b/cmd/cdr/clean.go @@ -25,6 +25,9 @@ func cleanAction(c *cli.Context) error { if !i.IsDir() && !strings.HasPrefix(i.Name(), ".") { fName := i.Name() trackName := cdr.RenameTrack(fName) + if trackName == "" { + return nil + } fmt.Println("Renaming", fName, "to", trackName) os.Rename(fName, trackName) }