Skip to content

Commit

Permalink
Replace wrong method call Base() -> Dir()
Browse files Browse the repository at this point in the history
  • Loading branch information
jmatthiesen81 authored and shyim committed Mar 28, 2024
1 parent e2502b9 commit a563b2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion account-api/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func saveApiTokenToTokenCache(client *Client) error {
return err
}

tokenFileDirectory := filepath.Base(tokenFilePath)
tokenFileDirectory := filepath.Dir(tokenFilePath)
if _, err := os.Stat(tokenFileDirectory); os.IsNotExist(err) {
err := os.MkdirAll(tokenFileDirectory, 0o750)
if err != nil {
Expand Down

0 comments on commit a563b2d

Please sign in to comment.