mirror of
https://github.com/ollama/ollama.git
synced 2025-09-27 20:56:39 +02:00
Merge pull request #473 from jmorganca/mxyng/fix-manifest-path
create manifests directory
This commit is contained in:
@@ -114,7 +114,12 @@ func GetManifestPath() (string, error) {
|
||||
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) {
|
||||
|
Reference in New Issue
Block a user