fix mkdir on windows

This commit is contained in:
Michael Yang 2023-09-19 09:36:30 -07:00
parent 24580df958
commit b58d5d16b0
4 changed files with 7 additions and 7 deletions

View file

@ -14,7 +14,7 @@ import (
"net/http"
"net/url"
"os"
"path"
"path/filepath"
"strconv"
"strings"
"time"
@ -82,7 +82,7 @@ func getAuthToken(ctx context.Context, redirData AuthRedirect) (string, error) {
return "", err
}
keyPath := path.Join(home, ".ollama", "id_ed25519")
keyPath := filepath.Join(home, ".ollama", "id_ed25519")
rawKey, err := os.ReadFile(keyPath)
if err != nil {