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

Merge pull request #99 from jmorganca/mkdir-blobs

fix mkdir blob path
parents 885f67a4 f20426a7
...@@ -106,10 +106,10 @@ func GetBlobsPath(digest string) (string, error) { ...@@ -106,10 +106,10 @@ func GetBlobsPath(digest string) (string, error) {
return "", err return "", err
} }
path := filepath.Join(home, ".ollama", "models", "blobs") path := filepath.Join(home, ".ollama", "models", "blobs", digest)
if err := os.MkdirAll(filepath.Dir(path), 0o755); err != nil { if err := os.MkdirAll(filepath.Dir(path), 0o755); err != nil {
return "", err return "", err
} }
return filepath.Join(path, digest), nil return path, nil
} }
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