Unverified Commit d42d8838 authored by Michael Yang's avatar Michael Yang Committed by GitHub
Browse files

Merge pull request #473 from jmorganca/mxyng/fix-manifest-path

create manifests directory
parents 154f24af a1ecdd36
...@@ -114,7 +114,12 @@ func GetManifestPath() (string, error) { ...@@ -114,7 +114,12 @@ func GetManifestPath() (string, error) {
return "", err return "", err
} }
return filepath.Join(home, ".ollama", "models", "manifests"), nil path := filepath.Join(home, ".ollama", "models", "manifests")
if err := os.MkdirAll(filepath.Dir(path), 0o755); err != nil {
return "", err
}
return path, nil
} }
func GetBlobsPath(digest string) (string, error) { func GetBlobsPath(digest string) (string, error) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment