Skip to content

Commit

Permalink
Need to make the data dir ourselves
Browse files Browse the repository at this point in the history
  • Loading branch information
sheelc committed Jul 27, 2017
1 parent 4170112 commit 784496e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spotify/spotifyoauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ func AuthConfig() (*oauth2.Config, error) {
}

func Set(dataId string, data []byte) error {
_ = os.Mkdir(dataPath(""), 0755)
return ioutil.WriteFile(dataPath(dataId), data, 0644)
}

Expand Down

0 comments on commit 784496e

Please sign in to comment.