Clear clears current backup. Before clearing, it checks whether Spotify is in valid state to backup again.
()
| 102 | // Clear clears current backup. Before clearing, it checks whether Spotify is in |
| 103 | // valid state to backup again. |
| 104 | func Clear() { |
| 105 | spotStat := spotifystatus.Get(appPath) |
| 106 | |
| 107 | if !spotStat.IsBackupable() { |
| 108 | utils.PrintWarning("Before clearing backup, please restore or re-install Spotify to stock state") |
| 109 | os.Exit(1) |
| 110 | } |
| 111 | |
| 112 | clearBackup() |
| 113 | } |
| 114 | |
| 115 | func clearBackup() { |
| 116 | spinner, _ := utils.Spinner.Start("Clearing current backup") |
no test coverage detected